[Issue 3731] Derived class implicitly convertible to base class with arbitrary change of constancy

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 26 03:11:30 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=3731



--- Comment #10 from Steven Schveighoffer <schveiguy at yahoo.com> 2012-03-26 03:11:50 PDT ---
(In reply to comment #9)
> (In reply to comment #1)
> > The solution would be to make it illegal to have a mutable class reference to
> > the base class.
> 
> No, because a Zmienna is perfectly allowed to be mutable.  It's Stala that
> isn't.

I think you misunderstand.  I don't mean because Stala exists, Zmienna should
be prevented from being mutable, even for cases where Stala is not involved.  I
mean, it should be illegal to have a mutable Stala reference point at a
Zmienna.

-- 
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