guile-user
[Top][All Lists]
Advanced

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

Re: let-syntax Problem


From: Daniel Llorens del Río
Subject: Re: let-syntax Problem
Date: Wed, 18 Oct 2006 18:57:30 +0200


On 18 Oct, 2006, at 18:09, address@hidden wrote:

  ERROR: invalid syntax ()
  ABORT: (misc-error)

error. (Isn't it possible to increase the verbosity of above error
message? You see, it's quite unuseful.)

It seems that you are forgetting to put

(use-syntax (ice-9 syncase))

before that code. It works on guile-1.8.0 if I do so.


********


On the other hand, this code from a syntax-rules tutorial

(define-syntax syntax-error
   (syntax-rules ()
     ((syntax-error) (syntax-error "Bad use of syntax error!"))))

doesn't work. Any use of syntax-error, matching the template or not, gives a stack overflow. This is both on 1.8.0 and on a CVS from 2006-09-20.





reply via email to

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