[Issue 1335] typedef-1 can't be stored in same typedef
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 11 17:05:33 PDT 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1335
------- Comment #5 from shro8822 at vandals.uidaho.edu 2007-07-11 19:05 -------
> From this example, and by reading the error message, you realize that
> DMD is allowing implicit conversion typedef->uint, but not the other
> way around. Isn't this pretty inconsistent?
this is more or less the same as the class conversion rules
conversion towards Object; no cast
conversion away from Object; needs cast
conversion towards built ins; no cast
conversion away from built ins; needs cast
typdefs can be considered subsets of what they typedef
For the little I've thought of it I'd have no problem with your suggested rule.
However, I still want the free down cast.
--
More information about the Digitalmars-d-bugs
mailing list