On Sun, Jun 29, 2014 at 08:34:24PM +0200, Felix Winkelmann wrote:
> > As far as I understand, if you statically link a program which contains
> > a (use foo) clause, you can link it together with foo.a, and it won't
> > try to load anything dynamically.  Is that correct?
> 
> No, it will try to load "foo.so" dynamically. Some builtin library
> units are treated as a special case.

Ah, now I understand.  That's due to register-feature, right?

Would it be enough to simply always register the library as being
loaded in case of static linking?  That way, we could make (import)
perform the task of (use), and remove all the other forms that so
often confuse beginners.  This will also make using the r7rs egg less
painful.

Cheers,
Peter
-- 
http://www.more-magic.net

_______________________________________________
Chicken-hackers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to