DMD 1.035 and 2.019 releases

Walter Bright newshound1 at digitalmars.com
Thu Sep 4 14:37:27 PDT 2008


Bill Baxter wrote:
> On Fri, Sep 5, 2008 at 6:20 AM, Pablo Ripolles <in-call at gmx.net> wrote:
>> Walter Bright Wrote:
>>
>> Hence, since there is a clear connection between the first point and the last point, why should the ctor substitute (or *override* as it has been used by you before) other than the static opCall mentioned in the last point?
>>
>> My experiments with real code and the last compiler version show that once there is present a ctor it even invalidates the possibility of accessing the *non-static* opCall to use a plain instance of that struct as if it were a function.  Is that the expected behavior?
> 
> If that's really the case with the latest D2 then that is odd.  In C++
> there isn't even a static opCall, only the non-static variety, but it
> works just fine in conjunction with constructors. Functor  structs and
> structs with constructors should not be mutually exclusive.  Kill off
> static opCall, fine, but don't kill instance opCall.  That's one step
> forward one step back.

The non-static opCall should work fine.


More information about the Digitalmars-d-announce mailing list