[Issue 10999] Limited type matching
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 10 08:24:59 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10999
Maxim Fomin <maxim at maxim-fomin.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |maxim at maxim-fomin.ru
--- Comment #3 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-09-10 08:24:57 PDT ---
(In reply to comment #1)
>
> I don't like the idea of an implicit cast from ushort[2] to short[2] on the
> basis of type safety, despite the current design breaks symmetry a little.
> Sometimes breaking the symmetry is acceptable if it increases safety.
>
Reinterpreting short as ushort has nothing to do with type safety - you cannot
corrupt anything, you cannot even get wrong value, like in case of
dchar<-->long (not all binary values are valid UTF characters).
--
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