D 2015/2016 Vision?

bitwise via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 5 12:39:24 PDT 2015


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


More information about the Digitalmars-d mailing list