guile-user
[Top][All Lists]
Advanced

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

Re: Strange behavior of define-public in 1.7


From: Andreas Rottmann
Subject: Re: Strange behavior of define-public in 1.7
Date: Tue, 28 Oct 2003 13:27:41 +0100
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

address@hidden writes:

> On Tue, Oct 28, 2003 at 12:34:12PM +0100, Andreas Rottmann wrote:
>> Hi!
>> 
>> I just wanted to try some app under 1.7, when I ran into this:
>
> The same behavior can be seen under 1.6.4
>
Indeed. Strange; the code worked, but began to throw errors like the
one below when I started to use 1.7. I worked around it by using
define-macro instead of syntax-rules.

>> guile> (define-public (x) (define (y) #f) #t)
>> guile> (use-syntax (ice-9 syncase))
>> guile> (define-public (x) (define (y) #f) #t)
>> ERROR: invalid context for definition of y
>> ABORT: (misc-error)
>> guile>
>> 

Andy
-- 
Andreas Rottmann         | address@hidden      | address@hidden | address@hidden
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint              | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

It's *GNU*/Linux dammit!




reply via email to

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