April 29, 2020 [Issue 20766] empty string literals passed as optional parameter should not be 0 terminated | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20766 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- I don't understand why this is a problem. I think that this is the intendend behavior; an empty string is not a null pointer. -- | ||||
April 29, 2020 [Issue 20766] empty string literals passed as optional parameter should not be 0 terminated | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=20766 Simen Kjaeraas <simen.kjaras@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |simen.kjaras@gmail.com Resolution|--- |INVALID --- Comment #2 from Simen Kjaeraas <simen.kjaras@gmail.com> --- Of course the else branch can be executed, just call test(null). Like RazvanN said, "" is not the same as null. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply