Have you tried to define an object constant and then assign that const as init 
value to your object var?

Something like
    
    
    type
      O = object
        i: int
    
    const
      OI = O(i: 7)
    
    var o = OI
    
    echo o.i
    
    
    
    Run

Reply via email to