stunning ;-)

For the Compleat Fan
Locked
newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

stunning ;-)

Post by 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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

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

Locked