dmd 1.053 and 2.037 release

Max Samukha spambox at d-coding.com
Sat Dec 5 05:38:33 PST 2009


On Fri, 04 Dec 2009 20:05:13 -0800, Walter Bright
<newshound1 at digitalmars.com> wrote:

>Probably the biggest thing is opDispatch!
>
>http://www.digitalmars.com/d/1.0/changelog.html
>http://ftp.digitalmars.com/dmd.1.053.zip
>
>
>http://www.digitalmars.com/d/2.0/changelog.html
>http://ftp.digitalmars.com/dmd.2.037.zip
>
>Many thanks to the numerous people who contributed to this update.

This code:

int[3] a = [1, 2, 3];

allocates the literal on heap and then copies it to 'a'. A call to a
library function has to be made to avoid the allocation.

Can we have such allocations optimized out?


More information about the Digitalmars-d-announce mailing list