By the strength of newLisp, make net-eval powerful !

Q&A's, tips, howto's
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

By the strength of newLisp, make net-eval powerful !

Post by newdep »

I was very surprised this worked, because I was always under the
impression that 'net-eval only worked as an evaluate on existing
funtions inside newlisp and that dynamic update did not work.

I was proven wrong today by myself..

net-eval can update a running program with new functions. And that is very powerful !

> (net-eval "localhost" 8080 [text](define (one) (println "too many"))[/text])
(lambda () (println "too many"))

(so net-eval is after 'lambda te most powerfull function in newlisp, except for an (exit) ofcourse ;-)

its capable of adjusting a running program, deleting functions adding
functions while the program is running.. This makes newlisp even more
dynamic then I assumed in the first place.

Wow what an eye opener ;-)

Perhpas an Idea to mention this in the manual?
Or leave it out and you'll get expressions like these onces in a while ;-)
-- (define? (Cornflakes))

Locked