[Issue 3367] Regression: struct initialization no longer supports ctor overloads

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 6 01:14:24 PDT 2009


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
            Summary|Regression: assignment at   |Regression: struct
                   |declaration no longer       |initialization no longer
                   |supports opAssign or ctor   |supports ctor overloads
                   |overloads                   |


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-10-06 01:14:23 PDT ---
My fault. This is a consquence of the fix to bug 2702. Previously it used to
accept any old garbage inside a struct initializer; now it only accepts static
opCall. It should definitely allow constructors as well. 

Based on my reading of the spec, the fact that opAssign used to work seems to
have been a bug:
"assignment is defined as copying the contents of one object over another,
already initialized, type" (struct.html)

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