macros: type save, or what?

Janice Caron caron800 at googlemail.com
Tue Sep 11 12:14:03 PDT 2007


I don't think macros need to be typesafe in quite the same way that
variable declarations do. I see them as an offshoot of mixins, where
the type is known at the point of expansion, rather than the point of
declaration. I have no problem.

On another thread, I argued that
const T name = value;

should be the appropriate syntax for declaring constants. But I have
nothing against macros in general.



More information about the Digitalmars-d mailing list