struct NInfo {
    public int[] info;
}

In the D Phobos there is no efficient stack yet, so I've used a dynamic array. If you need to append many items use an appender or use some truly segmented stack data structure.

Also if NInfo must really be a class, things become a little more complex.

Bye,
bearophile

Reply via email to