[Issue 2934] New: "".dup does not return empty string
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 4 07:02:00 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2934
Summary: "".dup does not return empty string
Product: D
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: qian.xu at funkwerk-itk.com
The following code will throw an exception:
char[] s;
assert( s.dup is null); // OK
assert("".dup !is null); // FAILED
"".dup is expectly also an empty string.
Confirmed with dmd v1, gdc
--
More information about the Digitalmars-d-bugs
mailing list