I have made a discovery

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Sun Apr 19 10:04:11 PDT 2015


On 2015-04-19 11:57, w0rp wrote:

> I'm not sure how that will
> end up looking in the end, but I am reminded of Objective C again, where
> allocation and construction are explicitly separated.
>
> // Enough time in Wonderland makes this seem perfectly natural.
> MyClass* foo = [[MyClass alloc] initWithNumber:3];

And in Swift they removed then need to call "alloc".

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list