[Issue 10272] opAssign() not invoked during variable declaration and initialization

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 5 00:03:15 PDT 2013


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


w0rp <devw0rp at gmail.com> changed:

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


--- Comment #1 from w0rp <devw0rp at gmail.com> 2013-06-05 00:03:13 PDT ---
Isn't this exactly the same as not calling operator= in C++? I expect this
behaviour, because assignment and initialisation are two separate concepts. If
you have a case to handle where initialisation copies or destroys another
object's memory, do it in 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