Help Converting from C++

rookie rookie at rooki.com
Sun Jul 29 11:09:17 PDT 2012


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




More information about the Digitalmars-d-learn mailing list