[Issue 12189] "out" parameters should be allowed to modify immutable values in ctors

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 18 20:10:11 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12189


Kenji Hara <k.hara.pg at gmail.com> changed:

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


--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-18 20:10:06 PST ---
As Timon shows, accepting variable initialization via out parameter will make a
hole in type system, because out parameter should have mutable type.

So this is impossible enhancement.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list