[Issue 10404] Class!T should be the class version of type T

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 19 23:34:10 PDT 2013


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


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #4 from monarchdodra at gmail.com 2013-06-19 23:34:08 PDT ---
(In reply to comment #3)
> Update: if a method returns an S by value, the Class!S corresponding wrapper
> should return a new instance of Class!S with S as payload.

I think we're fucked in a lot more cases than just that actually:
- What about functions that take an S by value as an argument? DO we change it
to Class!S, and duplicate the class on receive (pass by value) ?
- Or functions that take an S by ref?
- Or return S by Ref (return this)?

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