[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] `csc -hygienic' errors on `match' macro
From: |
Michele Simionato |
Subject: |
Re: [Chicken-users] `csc -hygienic' errors on `match' macro |
Date: |
Sat, 1 Jan 2005 07:26:24 -0500 |
On Fri, 31 Dec 2004 00:55:55 +0100, Peter Bex <address@hidden> wrote:
> 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.
I got the same problem in the past. Just add
(require-extension match)
as first line of your script.
Maybe Felix should make mandatory to require "match" even with the
low level macro system.
Michele
- Re: [Chicken-users] `csc -hygienic' errors on `match' macro,
Michele Simionato <=