Hi Bearophile,

What you gave is perfect.

Thanks,
Rookie

On Sunday, 29 July 2012 at 18:06:29 UTC, bearophile wrote:
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