The demise of T[new]

Michel Fortin michel.fortin at michelf.com
Mon Oct 19 18:55:58 PDT 2009


On 2009-10-19 10:14:02 -0400, dsimcha <dsimcha at yahoo.com> said:

> == Quote from downs (default_357-line at yahoo.de)'s article
>> Walter Bright wrote:
>>> 
>>> Probably not. But you can rewrite:
>>> 
>>> a ~= stuff;
>>> 
>>> as:
>>> 
>>> a = a ~ stuff;
>>> 
>>> to make it work.
>> Is there any reason the first can't be a short-hand for the second?
> 
> Devil's advocate because I somewhat agree with you:  a = a ~ stuff; is so
> inefficient that it should be ugly.

I'd call that a premature optimization of the programmer's behavior. :-)

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list