Eliminate "new" for class object creation?
Rainer Deyke
rainerd at eldwood.com
Mon Oct 19 19:01:50 PDT 2009
Bill Baxter wrote:
> On Mon, Oct 19, 2009 at 4:00 PM, Rainer Deyke <rainerd at eldwood.com> wrote:
>> 'X(x)' and 'new X(x)' have distinct meanings in C++. In Java/C#/D, the
>> 'new' is just line noise.
>
> Well, I think "new Foo" is how you create a struct on the heap in D.
> So it's not exactly line noise.
I should have specified, "for classes".
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list