Attributes (lexical)

Elronnd elronnd at
Thu Nov 25 09:35:46 UTC 2021

On Thursday, 25 November 2021 at 08:06:27 UTC, rumbu wrote:
> Is that ok or it's a lexer bug?

@ (12) does exactly what I would expect.  @nogc I always assumed 
was a single token, but the spec says otherwise.  I suppose that 
makes sense.

#line is dicier as it is not part of the grammar proper; however 
the spec describes it as a 'special token sequence', and comments 
are not tokens, so I think the current behaviour is correct.

More information about the Digitalmars-d-learn mailing list