chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] macro systems and chicken (long)


From: felix winkelmann
Subject: Re: [Chicken-users] macro systems and chicken (long)
Date: Wed, 9 Apr 2008 12:29:42 +0200

On Tue, Apr 8, 2008 at 12:24 PM, Alaric Snell-Pym
<address@hidden> wrote:
>
> >
> > "define-record-type" (SRFI-9) should be sufficient. The problem is
> > that
> > it is not that easy to construct identifiers in hygienic macros (or
> > it probably
> > is, I don't know, I haven't thought about it very much, yet. There
> > are many
> > loose ends in the moment since so much changes).
> >
> >
>
>  It shouldn't be a problem - just (string->symbol (string-append
>  (symbol->string record-name) "-" (symbol->string slot-name))) or
>  whatever as usual and then don't explicitly rename it, I reckon.
>

In a hygienic macro system the name alone doesn't uniquely identify
a binding - you also have context information, which is stripped in
the expander of a define-macro.


cheers,
felix




reply via email to

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