chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Documentation problem (eggs tutorial and Extensions sect


From: Jeronimo Pellegrini
Subject: [Chicken-users] Documentation problem (eggs tutorial and Extensions section from the manual)
Date: Mon, 5 Apr 2010 09:06:37 -0300
User-agent: Mutt/1.5.20 (2009-06-14)

Hello!

I've tried to follow the instructions on the egg tutorial here:
http://chicken.wiki.br/eggs%20tutorial

and the "Extensions" part of the manual:
http://chicken.wiki.br/man/4/Extensions

But that didn't work. I compared the instructions and example there
to what's on some eggs in the svn repository, and found some differences.

It looks like the egg now *must* be a module or the "-j" option to the
compiler won't work (right?). And if I don't use "-j" so as not to generate
the import file, then I won't be able to load the extension (and the example
in the Extensions chapter won't really work).

#;1> (require-extension hello)

Error: (import) during expansion of (import ...) - cannot import from undefined 
module: hello

    Call history:

    <syntax>        (##core#require-extension (hello) #t)
    <syntax>        (##core#begin (##core#begin (##core#begin (##sys#require 
(quote hello))) (import hello)) (##core#und......
    <syntax>        (##core#begin (##core#begin (##sys#require (quote hello))) 
(import hello))
    <syntax>        (##core#begin (##sys#require (quote hello)))
    <syntax>        (##sys#require (quote hello))
    <syntax>        (quote hello)
    <syntax>        (##core#quote hello)
    <syntax>        (import hello)  <--


The eggs tutorial doesn't mention that (neither does chapter "Using the
Compiler" from the manual).

It seems that the documentation is for Chicken 3; I am not sure if I
understand everything that changed in the compiler since the docs were
written, otherwise I'd be happy to help updating the manual and eggs
tutorial. Are these the only changes?

J.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]