[Issue 2006] Appending empty array using ~= doesn't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 1 13:14:02 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2006
--- Comment #6 from Stewart Gordon <smjg at iname.com> 2011-10-01 13:13:23 PDT ---
(In reply to comment #5)
> (In reply to comment #3)
>> At the very least I'd like the compiler to generate an error saying it doesn't
>> know how to interpret 'arr ~= []'.
>
> Yes, ambiguity that is bug-prone, because both interpretations can run, must
> yield compiler error.
Yes, an uncast [] is ambiguous. But the original bug report isn't about that,
but about
aas ~= cast (string []) [];
which is completely unambiguous.
--
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