[Issue 10146] ref on return is ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 23 04:03:05 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |maxim at maxim-fomin.ru
         Resolution|                            |INVALID
           Severity|major                       |normal


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-05-23 04:03:04 PDT ---
D does not have references like C++. Each time you assign return value to a
struct variable, refness is wiped out. The only cases when returning by ref
matter, is when returned value is also returned by caller by ref or casted to
pointer.

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