[Issue 3257] New: Spec is unclear describing string switch case labels
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 18 06:28:14 PDT 2009
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: nobody at puremagic.com
ReportedBy: jlquinn at 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: -------
More information about the Digitalmars-d-bugs
mailing list