> I got tired of creating reference using the PIMPL or the following pattern
    
    
    var s:ref Person
    new(s)
    s.age ...
    

Er, I think you use Nim wrong, (ref) object construction can be done like this:
    
    
    var s = (ref Person)(age: 3, name: "Burns")
    

No tuples, no copying, no macros involved. 

Reply via email to