July 03, 2004 don't try this at home | ||||
---|---|---|---|---|
| ||||
This code will compile to rather large object and executable files. module test; class lookup(uint N) { real[N] items; } void main() { lookup!(1000000) test; test = new typeof(test)(); } System: XP/SP DMD 0.94 The file size is a function of what value lookup is instantiated with, i.e. a higher number will increase file size. This bug is funny. :-) |
Copyright © 1999-2021 by the D Language Foundation