[Issue 12194] Constructor prevents static opCall regression?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 18 17:51:15 PST 2014


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla at digitalmars.com
         Resolution|                            |WONTFIX


--- Comment #6 from Walter Bright <bugzilla at digitalmars.com> 2014-02-18 17:51:11 PST ---
(In reply to comment #5)
> I'm not really against the change, but I do think it is dangerous since the
> compiler can't/doesn't verify the needed changes were made.

In this case, the compiler does give a message.

Mixing constructors and static opCall makes a struct hard to reason about and
also resulted in some arbitrary behavior by the compiler. I.e. this change came
about because of fixing other bugzilla issues.

I'm going to mark it as wontfix because it is an intended change.

I apologize for the breaking of the existing code, and for not handling this
behavior change better.

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