Tommi Höynälänmaa writes:
> I get the following error message:
[...]
> ERROR: In procedure #:
> ERROR: Wrong type to apply: #
> make: *** [hello-world.scm] Virhe 1
> --- cut here ---
>
> The code should compile.
This error indicates, roughly speaking, that
ML == M Luedde [EMAIL PROTECTED] writes:
ML Hello!
ML The guile `info' documentation (1.5.7) states that guile is R5RS
ML compliant.
ML However, I cannot get the macro mechanism `define-syntax' to work
ML (guile 1.6.0 on cygwin).
ML What's wrong here?
Can you post
Hello!
The guile `info' documentation (1.5.7) states that guile is R5RS
compliant.
However, I cannot get the macro mechanism `define-syntax' to work
(guile 1.6.0 on cygwin).
What's wrong here?
Regards, Mirko.
___
Bug-guile mailing list
[EMAIL
I think define-syntax is stumbling on vector constants:
(use-modules (ice-9 syncase))
(define-syntax IF
(syntax-rules ()
((IF form1 form2) (if form1 form2))
((IF form1 form2 form3) (if form1 form2 form3
(IF (not (vector? #(4.0)))
(display oops))
invalid syntax #(4.0
From: Bill Schottstaedt [EMAIL PROTECTED]
Date: Tue, 19 Feb 2002 04:26:13 -0800
I think define-syntax is stumbling on vector constants:
(use-modules (ice-9 syncase))
(define-syntax IF
(syntax-rules ()
((IF form1 form2) (if form1 form2))
((IF form1 form2 form3) (if form1