http://d.puremagic.com/issues/show_bug.cgi?id=3257

           Summary: Spec is unclear describing string switch case labels
           Product: D
           Version: 2.031
          Platform: All
               URL: http://www.digitalmars.com/d/2.0/statement.html#CaseSt
                    atement
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: www.digitalmars.com
        AssignedTo: nob...@puremagic.com
        ReportedBy: jlqu...@optonline.net


In the docs, it describes the allowable string case labels as follows:

  Both ascii and wchar strings are allowed. 

Is this true?  Or are char utf-8 and dchar strings also allowed?  If not, it
seems a strange restriction.

It is also unclear if compile-time-evaluable expressions are allowed for string
case labels.  The general text on switches makes it seem so, but the above text
moddies the waters a little, I think.

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

Reply via email to