Hello why does zip from srfi-1 not work?
(write (zip (list 1 2 3) (list 2 3 4)))
gives:
== *** ERROR IN map -- Operator is not a PROCEDURE (#!unbound '#<procedure #2 procedure?> '#<procedure #3 list> '#<procedure #4 map>) ==
I downloades srfi-1 from snow. However, cannot install it but using srfi-1-reference which comes with snow:
== gsc -link srfi-1-reference.scm test.scm gcc srfi-1-reference.c test*.scm -lgambc ./a.out ==
Btw: Is there a way Gambit to obtain better error messages?
Thanks, Siegfried Gonzi
Afficher les réponses par date
Siegfried Gonzi wrote:
Btw: Is there a way Gambit to obtain better error messages?
Use the interpreter, which will report the name of the unbound variable and throw you into the debugger; additionally, switching off tail call optimization avoids confusion about the place where the error happens (generate-proper-tail-calls #f).
(I don't know how to tell snow not to compile (but load in the interpreter) a file.)
Christian.