What is the 'macro' keyword for?

Jonathan M Davis jmdavisProg at gmx.com
Tue Jun 26 14:40:41 PDT 2012


On Tuesday, June 26, 2012 14:35:23 Ali Çehreli wrote:
> It is listed as a reserved keyword
> 
> - in TDPL
> 
> - at http://dlang.org/lex.html
> 
> - at https://github.com/bhelyer/SDC/blob/master/src/sdc/token.d
> 
> Is it still used? What is/was it for?

Nothing right now. If we ever get any kind of AST macros, then maybe it'll be 
used for those, but for now, it's just reserved. I'm not aware of it ever 
having been used for anything.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list