Help Converting from C++

bearophile bearophileHUGS at lycos.com
Sun Jul 29 11:06:28 PDT 2012


> 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


More information about the Digitalmars-d-learn mailing list