www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - 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. :-)
Jul 03 2004