[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] reload .so in csi?
From: |
Peter Bex |
Subject: |
Re: [Chicken-users] reload .so in csi? |
Date: |
Mon, 4 Jul 2011 09:12:21 +0200 |
User-agent: |
Mutt/1.4.2.3i |
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