How to refer to different sized static arrays
    Adnan 
    relay.public.adnan at outlook.com
       
    Sat Feb  8 08:22:46 UTC 2020
    
    
  
Just a foreword, this is for learning purposes, hence I am not 
using the dynamic array or Array!T.
I have a structure that maintains a heap allocated sized array 
inside.
struct LifoStack(T) {
   T[?] data;
}
This `data` is manually resized and copied. Thus the size itself 
is not a compile time constant. What should go inside `?` in the 
the type signature of data?
Also, how can I create runtime-determined sized fixed array in 
the heap?
    
    
More information about the Digitalmars-d-learn
mailing list