Walter Bright wrote:
Lots of meat and potatoes here, and a cookie! (spelling checker for error messages)

http://www.digitalmars.com/d/1.0/changelog.html
http://ftp.digitalmars.com/dmd.1.057.zip


http://www.digitalmars.com/d/2.0/changelog.html
http://ftp.digitalmars.com/dmd.2.041.zip

Thanks to the many people who contributed to this update!


Bug 1914 Array initialisation from const array yields memory trample

was fixed, in D2 only. Can we get this into D1 as well?

To show what a huge difference this bug makes, try this test case for large values of N:

Executable size in bytes

N       D2.040   D2.041
---    -------   ------
10      266 Kb   241 Kb
100     306 Kb   241 Kb
2000  16151 Kb   257 Kb
10K  <locks up>  321 Kb
---------
enum : int { N = 1000 }

struct S {
    const float[N] BIGINIT = [7];
    float a[N] = BIGINIT;
}

void main() {}

Reply via email to