I found the (assumingly) correct way.
    
    
    type
        Object[size: static[int]] = object
          list : array[size, int]
          size : static[int]
          #[
          size = size
          # won't work for now but in the future...
          # https://github.com/nim-lang/Nim/issues/3250
          ]#
    
    
    Run

as for now, I believe I need to use a constructer 

Reply via email to