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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 18 20:18:39 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7539



--- Comment #1 from timon.gehr at 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 accident.

-- 
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