Macros: a visual aid.
Walter Bright
newshound1 at digitalmars.com
Sun Jul 8 12:39:02 PDT 2007
Kristian Kilpi wrote:
> On Sun, 08 Jul 2007 10:35:49 +0300, Walter Bright
>> 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@();
I suggest using the C convention of uppercasing the macro names. Seems
to work fine.
More information about the Digitalmars-d
mailing list