Recursive expansion of pmacros (was: Re: Typo: .substr in pmacros.texi is .substring in pmacros.scm)
Hans-Peter Nilsson
hans-peter.nilsson@axis.com
Tue Mar 19 13:53:00 GMT 2002
> From: Doug Evans <dje@transmeta.com>
> Date: Tue, 19 Mar 2002 13:24:48 -0800 (PST)
> Hans-Peter Nilsson writes:
> > > Note that there are otherways to do this, besides the implicit re-lookup.
> >
> > How can I do that without re-lookup?
> ^
> ^
> You left out the "implicit".
> e.g. what's the opposite of implicit? [hint hint]
Ah, you mean I should use (.eval (pmacro-expand '(.sym ...)))!
But that's frowned upon (pmacros.scm) (supposedly because you
break through the CGEN description interface into scheme and
nasty things not accounted for can happen):
; .eval is an experiment. Ports that consider themselves to be of beta
; quality or better don't use it.
Besides, I *expected* implicit re-lookup of a symbol built-up
from (.sym ...). I think it comes naturally: what happens to
abc should happen to the expansion of (.sym a b c). If people
don't want re-lookup, may there can be added explicit deferring,
by, say, (quote ...) ;-)
brgds, H-P
More information about the Cgen
mailing list