int* p = (int*) malloc (size * sizeof (int)); Is there a way to write this in 
Nim or do I have to ffi malloc (and will it work?). I don't want a variable 
length container but to set the size dynamically.

type
    

Stack = object
    A: array[5, int]

This works but the array size is fixed. I want to specify the array size at 
object creation. Thanks for your help. 

Reply via email to