www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17782] New: The identifier delimiter of a delimited string

https://issues.dlang.org/show_bug.cgi?id=17782

          Issue ID: 17782
           Summary: The identifier delimiter of a delimited string can not
                    begin with '_'
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: nmtigor.wang googlemail.com

The following code does not compile:

 safe unittest
{
    string str = q"_DLANG
123
_DLANG";
    assert( str == "123\n" );
}

Replacing "_DLANG" with "DLANG", it then compiles.

--
Aug 26 2017