[Issue 3282] The overload and override issue of const/immutable member functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 23 19:36:47 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID


--- Comment #9 from Walter Bright <bugzilla at digitalmars.com> 2012-01-23 19:36:45 PST ---
The return types are the issue. You cannot, for example, override a function
that returns a mutable array with one that returns an immutable one. It would
be a giant hole in the type system.

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