Counterproposal for extending static members and constructors

Timon Gehr timon.gehr at gmx.ch
Thu Jul 12 14:56:29 PDT 2012


On 07/12/2012 06:25 PM, David Piepgrass wrote:
> I'm putting this in a separate thread from
> http://forum.dlang.org/thread/uufohvapbyceuaylostl@forum.dlang.org
> because my counterproposal brings up a new issue, which could be
> summarized as "Constructors Considered Harmful":
>
> http://d.puremagic.com/issues/show_bug.cgi?id=8381

I work around this issue by creating all objects like
New!Type(args);


More information about the Digitalmars-d mailing list