On Wed, Aug 27, 2008 at 1:33 PM, Peter Bex <[EMAIL PROTECTED]> wrote: > On Wed, Aug 27, 2008 at 12:11:02PM -0400, Graham Fawcett wrote: >> Hi folks, it looks like base64 under chicken-hygienic doesn't import >> properly -- I get the import.so but not the real one. > > (import) is a statement that imports the module into the current module. > For that to work, you must have loaded the extension first. > > The correct incantations are: > #;1> (require-library base64) > OR: > #;1> (require-extension base64)
D'oh, of course, that was silly of me. Thanks for the correction. > The latter example is the same as you'd do it in Chicken 3. It loads > and imports the extension in one go, without allowing you to do any > operations on the imported symbols anymore. It's more convenient, but > less powerful. > > I think Felix reinstated the (use ) command also, so you could also just > do (use base64), just like you'd do with chicken 3. Yes, I can confirm that (use base64) does the right thing. Cheers, Graham _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
