DMD 1.035 and 2.019 releases

Extrawurst spam at extrawurst.org
Wed Sep 3 01:54:26 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.


Well the advandage of opCall is (in my intention) that you can have an 
empty argument list. it think its kind of inconsistend if u want to do 
reference counting in a generic struct template, isnt it ?


More information about the Digitalmars-d-announce mailing list