[Issue 2934] "".dup does not return empty string
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon May 4 07:24:56 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2934
------- Comment #1 from qian.xu at funkwerk-itk.com 2009-05-04 09:25 -------
Sorry. I should have post the following code:
char[] s;
assert(s is null);
assert(s.dup is null);
assert("" !is null); // OK
assert("".dup !is null); // FAILED
The last two lines behave not consistent.
Either both are failed, or both are passed.
--
More information about the Digitalmars-d-bugs
mailing list