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

Reply via email to