On 2/26/15 4:09 PM, deadalnix wrote:
On Thursday, 26 February 2015 at 21:50:56 UTC, Andrei Alexandrescu wrote:
http://wiki.dlang.org/DIP74 got to reviewable form. Please destroy and
discuss.
Thanks,
Andrei
"The compiler detects automatically and treats specially all classes and
interfaces that define the following two methods:"
Well, RefCounted could use compile time reflexion to do so. Even better,
we could define a lvalue property for RefCounted to use a counter so we
can do intrusive counting in both classes and structs.
No, see below how typechecking is more strict for RCOs. -- Andrei