[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: 5-gary-macro-formal-parameter-first-cut.patch
From: |
Akim Demaille |
Subject: |
Re: FYI: 5-gary-macro-formal-parameter-first-cut.patch |
Date: |
Tue, 10 Jun 2003 14:00:49 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) |
> Just applied to HEAD.
> Most of this is okay, and it certainly works. But it strikes me that
> it would be much more elegant to pushdef the values named by the
> formal parameter list for the duration of the expansion of a macro.
> In the body of a macro the parameters would be referenced by name
> (without a leading $) and there would be dynamic scoping since nested
> macros could reference parameters from their parents.
> define(`foo(bar)', `blah: bar')
> foo(`baz')
> =>blah: baz
> define(`quux(blah)', `quux: blah; foo(`argh')')
> quux(`baz')
> =>quux: baz; baz: argh
> Comments?
I hate dynamic scoping :( But it's already the rule here, so...
Nice idea, but I need more time to think about this.