DMD 1.035 and 2.019 releases
bobef
bobef at nosmap-abv.bg
Wed Sep 3 04:15:53 PDT 2008
Walter Bright Wrote:
> Extrawurst wrote:
> > yeah i figured, but if i have an opCall with the exact same arguments
> > its never called, isnt that ambiguous ? what happens to opcall anyway ?
> > will it sooner or later fall out ?
> >
> > Walter Bright wrote:
> >> To construct an object of struct S:
> >>
> >> auto s = S(arguments);
> >>
> >> Extrawurst wrote:
> >>> Are opCalls deprecated now ? how do i call the ctor and how the
> >>> opCall? a short example in the docs would have been nice.
>
> ctor's override the opCalls. The opCalls will eventually probably get
> deprecated.
opCalls are much more flexible than ctor's because their return type may vary or they may not have return type. I vote against deprecating them. Let whoever likes ctors use them and whoever likes opCalls use these.
Regards
More information about the Digitalmars-d-announce
mailing list