DIP74: Reference Counted Class Objects

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 26 15:19:41 PST 2015


Andrei Alexandrescu:

>The compiler detects automatically and treats specially all 
>classes and interfaces that define the following two methods:<

Defining only one of those methods needs to give a compile-time 
error.


>This lowering assumes left-to-right evaluation of function 
>parameters.<

Is this currently enforced in all D compilers?


>This DIP allows defining reference counted class objects that 
>are usable in @safe code. However, it does not enforce safety.<

And do you plan to later design what's needed to enforce their 
safety?

Bye,
bearophile


More information about the Digitalmars-d mailing list