The copious @= operator

MrzlganeE bulletproofchest at gmail.com
Sat Jun 1 10:46:41 PDT 2013


This idea is pretty awful, because it works good for:

a @= b;

But it doesn't cover the cases where .dup is far more general:

T[] l = [ a.dup, b.dup, c ];

Modified by a stretch to macro cloning:

T[] l @= [ a, b, c ];       // all 3 of them clone. nuts for 
every reason you could come up with.

Yet, which "should" only parse properly to:

T[] l = [ a, b, c ].dup;    // even if 
expression-scope-auto-cloning was not crazy


More information about the Digitalmars-d mailing list