[Issue 2095] covariance w/o typechecks = bugs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 27 10:12:25 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=2095
--- Comment #28 from Andrei Alexandrescu <andrei at metalanguage.com> 2010-11-27 10:10:58 PST ---
(In reply to comment #27)
> (In reply to comment #26)
> > If derived[] is implicitly converted to const(base)[], what happens when I
> > append another bade object to the array? Should it implicitly convert to
> > const(base[])?
>
> You can't append a bad object to a const array.
Ah, you mean "base" not "bad". Sorry! Conversion Derived[] -> const(Base)[] is
fine because the resulting array is not an lvalue.
--
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