chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] `csc -hygienic' errors on `match' macro


From: Peter Bex
Subject: [Chicken-users] `csc -hygienic' errors on `match' macro
Date: Fri, 31 Dec 2004 00:55:55 +0100
User-agent: Mutt/1.4.2.1i

Hi list,

Yet another question from me:

test.scm
-------------------------------------
(define foo '((1 . 2) 3))

(match (car foo)
   [(x . y) (display "succeed")])
-------------------------------------

$ csc -hygienic test.scm
Error: invalid syntax: (x . y)

*** Shell command terminated with exit status 70: /usr/pkg/bin/chicken test.scm 
-output-file test.c -quiet -hygienic

When I omit the -hygienic, I get a good compile.

This is using 
Version 1, Build 66 - netbsd-gnu-x86
(c)2000-2004 Felix L. Winkelmann

And also on the same version for NetBSD/macppc.

I ask this, because the Spiffy egg uses such a construct.  I was trying to
build Spiffy with this option hoping it could mean a fix for my problems
I posted earlier to this list.

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: pgpihOSTPeAd4.pgp
Description: PGP signature


reply via email to

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