chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Error: unbound variable: define-macro


From: Peter Bex
Subject: Re: [Chicken-users] Error: unbound variable: define-macro
Date: Tue, 25 Jun 2013 10:24:01 +0200
User-agent: Mutt/1.4.2.3i

On Tue, Jun 25, 2013 at 03:17:22AM -0500, Daniel Ajoy wrote:
> I pasted this code:
> 
> (define-macro (ez-debug var)
>     (let ((name (symbol->string var)))
>       `(print ,name ": " ,var)))
> 
> from
> 
> http://wiki.call-cc.org/chicken-for-ruby-programmers#macros
> 
> and got
> 
> Error: unbound variable: define-macro

Yeah, that's a really outdated example.  define-macro is fundamentally
broken and hasn't been supported for over 4 years (since the release of
CHICKEN 4.0).

I've rewritten the example to use syntax-rules, as there is no need
for it to be a low-level macro in the first place.

Cheers,
Peter
-- 
http://www.more-magic.net



reply via email to

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