chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Compiled programs: no unless/let-optional macros?


From: Peter Bex
Subject: [Chicken-users] Compiled programs: no unless/let-optional macros?
Date: Wed, 29 Dec 2004 19:50:59 +0100
User-agent: Mutt/1.4.2.1i

Hi again,

Another problem that I came across (but more serious, I can't continue
my project because of it):

----- foo.scm -------
(define (test)
  (unless #t
    (display "bar")))

(test)
---------------------

Running a compiled Chicken program (the Spiffy webserver, but I don't think
that matters), I get the following when (load)'ing foo.scm:

bar
Error: unbound variable: unless

When I load the file from csi it displays nothing, not even an error. (ie,
the correct behaviour)

I already tried compiling spiffy with the -hygienic-at-run-time and
-run-time-macros flags.  Nothing seems to help.

It's not just the (unless) macro  (I could easily replace that by an
(if (not ...))), but it's also let-optionals, a macro that I would really
want to use.

What am I doing wrong?

Regards,
Peter
-- 
http://www.student.kun.nl/peter.bex
--
"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

Attachment: pgpPkSSzBDx5r.pgp
Description: PGP signature


reply via email to

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