The documentation states that this should be an error:
auto s1 = q{ @ };
However, the compiler allows it.
Tested on Windows with 2.040 and 2.050.
Comment #1 by ellery-newcomer — 2010-10-30T17:45:09Z
The documentation is not maintained.
If it were, it would say that @ is a valid token in d2.
Comment #2 by jemandy — 2010-10-31T10:34:02Z
Ugh. I have even used the @ token (which I must have found in TDPL). That makes me feel dumb. Well, if it's not a compiler error, then it's a documentation error (in multiple places). :-)
Comment #3 by ellery-newcomer — 2010-10-31T11:09:10Z
(In reply to comment #2)
> Ugh. I have even used the @ token (which I must have found in TDPL). That
> makes me feel dumb.
Sorry bout that :)
FWIW, this problem and a bunch of others are fixed by the patch in bug 1351.
Comment #4 by bugzilla — 2012-01-20T00:36:49Z
@ is a valid token, and the documentation was recently fixed to reflect that.