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

Started by newdep, April 18, 2007, 04:15:03 AM

Previous topic - Next topic

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))