Things that may be removed

Nick Sabalausky a at a.a
Wed Dec 17 21:41:29 PST 2008


"Simen Kjaeraas" <simen.kjaras at gmail.com> wrote in message 
news:op.umbxr0n41hx7vj at biotronic.osir.hihm.no...
> On Wed, 17 Dec 2008 23:45:55 +0100, Nick Sabalausky <a at a.a> wrote:
>
>> I think Andrei has previously suggested the idea of dropping the keyword
>> "new" from class instantiations / heap allocations. I wouldn't like that.
>> The "new" makes class instantiations / heap allocations easily 
>> greppable. I
>> don't think I would want to give that up.
>
> IIRC, the idea was to replace it with a member function, i.e. foo.new();
>

I was under the impression it was about changing this:

class Foo {}
auto f = new Foo();

To this:

class Foo {}
auto f = Foo();

Maybe I was mistaken though. 





More information about the Digitalmars-d mailing list