Thread overview
What is the 'macro' keyword for?
Jun 26, 2012
Ali Çehreli
Jun 26, 2012
Jonathan M Davis
Jun 26, 2012
H. S. Teoh
June 26, 2012
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?

Ali
June 26, 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
June 26, 2012
On Tue, Jun 26, 2012 at 02:35:23PM -0700, 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?
[...]

AFAIK, it is reserved for the future possibility of some kind of macro system (perhaps an AST transformation system). I don't think it's currently used in any way.


T

-- 
To provoke is to call someone stupid; to argue is to call each other stupid.