[Issue 7539] cast(bool) of empty array must result in false

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7539 --- Comment #4 from timon.g...@gmx.ch --- :( --

[Issue 7539] cast(bool) of empty array must result in false

2017-07-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=7539 Vladimir Panteleev changed: What|Removed |Added Status|NEW

[Issue 7539] cast(bool) of empty array must result in false

2012-02-19 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7539 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---

[Issue 7539] cast(bool) of empty array must result in false

2012-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7539 --- Comment #1 from timon.g...@gmx.ch 2012-02-18 20:18:38 PST --- More evidence: Currently these both fail to interpret with the same error message. static assert(cast(int*)[]||1); static assert(cast(bool)[]||1); The current semantics were an