What is the 'macro' keyword for?

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Jun 26 14:42:29 PDT 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.


More information about the Digitalmars-d-learn mailing list