On Fri, Jul 01, 2011 at 04:21:05PM -0400, David N Murray wrote:
> > That is probably the best solution.  The other solution is to use (load
> > "foo.so") but it may not work on all platforms.  (I sent that last bit
> > in private mail but forgot to copy the list)
> 
> (load "foo.so") appears to do the same thing as
> #;4> ,l foo.so
> ; loading foo.so
> #;4>
> 
> but, the new function I'm exporting still isn't visible, so it doesn't
> look like changes are being picked up.

That sounds like you're loading a file with a module in it.  If you
change the module definition, you will need to import it again after
loading.  LOAD simply reloads the module, but doesn't affect
the identifiers already imported previously in your running code.

If you just change the definition, a LOAD is enough.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to