Replacing new? (was re: -nogc)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Apr 23 10:27:51 PDT 2009


Joel C. Salomon wrote:
> Just as (1) & (2) point to a way to remove the “magic” of built-in
> arrays & hash-tables, so too might (5) & (6) point to a way of replacing
> the “new T(args)” syntax with something cleaner?  Not that
> “new!(T)(args)” looks nicer than the current syntax, but is it perhaps a
> better fit with the rest of the language?

I agree. new sucks.

Andrei



More information about the Digitalmars-d mailing list