digitalmars.D.bugs - don't try this at home
- Bent Rasmussen (15/15) Jul 03 2004 This code will compile to rather large object and executable files.
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. :-)
Jul 03 2004








"Bent Rasmussen" <exo bent-rasmussen.info>