DIP74: Reference Counted Class Objects

via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 27 05:36:30 PST 2015


On Friday, 27 February 2015 at 08:26:14 UTC, Ola Fosheim Grøstad 
wrote:
> On Thursday, 26 February 2015 at 22:04:09 UTC, Andrei 
> Alexandrescu wrote:
>> On 2/26/15 2:03 PM, Brian Schott wrote:
>>>
>>> One of the first things that stood out to me is that "add 
>>> ref" is two
>>> words and "release" is one. For the sake of symmetry, how 
>>> about these:
>>> *  opIncRef, opDecRef
>>> *  opAcquire, opRelease
>>
>> All - please PLEASE do not derail this into yet another debate 
>> about which names are best. -- Andrei
>
> Using protocols rather than enforcing a particular 
> implementation is nice, but D needs to stop reinventing 
> terminology and syntax matters.
>
> -- snip --

AddRef/Release is established COM terminology.


More information about the Digitalmars-d mailing list