q{ @ }
Peter Alexander
peter.alexander.au at gmail.com
Sun Sep 25 08:51:06 PDT 2011
On 25/09/11 4:49 PM, Peter Alexander wrote:
> See: http://d-programming-language.org/lex.html
>
> It says:
>
> q{ @ } // error, @ is not a valid D token
>
> but...
>
> http://d-programming-language.org/lex.html#Token
>
> This clearly shows that @ is a token.
>
> So, which is it?
btw...
import std.stdio;
void main()
{
writeln( q{ @ } );
}
This compiles and does what you'd expect in DMD 2.055.
More information about the Digitalmars-d
mailing list