Macros: a visual aid.
Kristian Kilpi
kjkilpi at gmail.com
Sun Jul 8 02:19:44 PDT 2007
On Sun, 08 Jul 2007 10:35:49 +0300, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Chris Nicholson-Sauls wrote:
>> Now that stands out! So Walter, please consider some sort of
>> decoration (such as the '@') for macro invocations. I think it may
>> save some future headaches, /and/ give the parser something to latch on
>> to.
>
> Part of the intent of macros is to make them look just like functions!
> (There also isn't any parsing issue, like there is for template
> invocations.)
That's right. Well, one option could be allowing macro names to contain
some special char(s)?
E.g.
macro foo() {}
macro bar@() {}
foo();
bar@();
More information about the Digitalmars-d
mailing list