stunning ;-)

Started by newdep, July 26, 2004, 08:41:43 AM

Previous topic - Next topic

newdep

Lutz,



Im very surprized about the functionality of newlispEvalStr/dllEvalStr



I just discovered that variables simple can be set inside the scope

of the newlisp library and call them back. Instead of creating local

variables and link those to the output of the newlisp dll call...



Ha..so actualy the dll/lib is in fact not static at all ;-)  very good !

that makes library calls very very nice ;-)



Norman.
-- (define? (Cornflakes))

Lutz

#1
Yes, an imported 'newlisp.so' or 'newlisp.dll' is keeping state in between calls to (newlispEvalstr ...), just like a normal invocation of newLISP. And is does that for each application importing the newlisp library separately, so if you have two apps. on the same computer importing the newlisp library they have separate data spaces. This is why you could write 'C' (or other programming language) applications where lot of the work and data storage is done using newLISP.



I wonder if anybody out there knows, if it is possible to import libraries (as a user) from the Gnumeric spreadsheet, or which other user apps. on Linux do allow importing libraries.



Lutz