This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Recursive expansion of pmacros (was: Re: Typo: .substr in pmacros.texi is .substring in pmacros.scm)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]