[Issue 10999] Limited type matching
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 10 07:50:27 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10999
bearophile_hugs at eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs at eml.cc
--- Comment #1 from bearophile_hugs at eml.cc 2013-09-10 07:50:26 PDT ---
Implicit casts are generally bad/dangerous, despite they are sometimes handy,
so generally we should be careful in introducing even more of them.
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.
Adding a no-op cast(short[2]) in the code seems acceptable because this
conversion seems uncommon enough (this conversion should call no run-time
functions).
--
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