On Monday, 5 October 2015 at 19:02:59 UTC, Meta wrote:
On Monday, 5 October 2015 at 18:18:15 UTC, bitwise wrote:
I think the solution to the above question is as simple as allowing RC classes to have something like "static T opNew(){}".

     Bit

User-defined `new` is already in the language, but it's deprecated.

I can't find much info on it, but it seems like it used the old C++ operator overloading syntax. For that reason, I guess it should be removed. I think ref counted classes are a good reason to bring it back with the proper syntax though "static T opNew()"

    Bit

Reply via email to