Thread overview
[Issue 5139] New: Illegal TokenString allowed
Oct 31, 2010
John Mandeville
Oct 31, 2010
Ellery Newcomer
Oct 31, 2010
John Mandeville
Oct 31, 2010
Ellery Newcomer
Jan 20, 2012
Walter Bright
October 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5139

           Summary: Illegal TokenString allowed
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: jemandy@earthlink.net


--- Comment #0 from John Mandeville <jemandy@earthlink.net> 2010-10-30 17:00:00 PDT ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5139


Ellery Newcomer <ellery-newcomer@utulsa.edu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ellery-newcomer@utulsa.edu


--- Comment #1 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-10-30 17:45:09 PDT ---
The documentation is not maintained.

If it were, it would say that @ is a valid token in d2.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5139



--- Comment #2 from John Mandeville <jemandy@earthlink.net> 2010-10-31 10:34:02 PDT ---
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).  :-)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 31, 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5139



--- Comment #3 from Ellery Newcomer <ellery-newcomer@utulsa.edu> 2010-10-31 11:09:10 PDT ---
(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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=5139


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2012-01-20 00:36:49 PST ---
@ is a valid token, and the documentation was recently fixed to reflect that.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------