directory on my debian squeeze i386 machine and went through the ./configure, make and make install again and tried to do a basic function call like this:
i thought that by re-installing newlisp w/ the module in place, this would let me not have to load the web.lsp module manually. am i correct about this? i even put it in the nL unpacked modules directory before i re-ran the config/make/make install.
this is what i get when i try to run the http as a string, as you pointed out: (thanks again!)
newLISP v.10.1.1 on Linux IPv4 UTF-8, execute 'newlisp -h' for more info.
> (Web:parse-url "http://www.newlisp.org")
ERR: invalid function : (Web:parse-url "http://www.newlisp.org")
>
joejoe wrote:i thought that by re-installing newlisp w/ the module in place, this would let me not have to load the web.lsp module manually. am i correct about this?
newLISP doesn't automatically detect and load modules, you always have to include a (load) statement to use a module's code.
For example, this should theoretically work (untested)
I think you are getting confused by how the load and module functions work...
From the newLISP manual:
Environment variable NEWLISPDIR
During startup, newLISP sets the environment variable NEWLISPDIR, if it is not set already. On Linux, BSDs, Mac OS X and other Unixes the variable is set to /usr/share/newlisp. On Win32 the variable is set to %PROGRAMFILES%/newlisp.
The environment variable NEWLISPDIR is useful when loading files installed with newLISP:
check out my attempt of "auto-loading" modules. Download Dragonfly framework. It's in the file dragonfly.lsp
Just a few lines of code.
Cheers
Hilti
thanks for the help Hilti.
im refraining from using bsd/mit/non-copyleft code, so i am sticking to the core modules. i appreciate the insight, and if dragonfly every becomes gpl, you bet i will be all over it. :0) --joejoe