Consistency, Templates, Constructors, and D3

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 24 10:04:33 PDT 2012


On 8/24/12, Nathan M. Swan <nathanmswan at gmail.com> wrote:
> Class.new().method() vs. (new Class()).method()

I prefer the latter because it's more explicit that you're throwing
away an object after invocation (unless you do something funky in
'method' and store the 'this' reference globally).


More information about the Digitalmars-d mailing list