@LeuGim Yeah if it has the same fields there is no problem. But we can't be 
sure that is always the case.

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

so I finally got 
    
    
    var s = createRef(Person,(age:..))
    # or
    var s = createRef(Person(age:...))
    

Is there a way to create a macro for := for the same thing?
    
    
    var s := Person(age:...)
    

Reply via email to