Is there a syntax that I can copy and update attribute in single expression 
like 'with' in this code?
    
    
    type
        Customer = object
            name: string
            age: string
            address: string
    
    var c1 = Customer(name: "wk", age: 20, address: "420")
    var c2 = with(c1, name: "jw", address: "440")
    var c3 = with(c2, age: 30)
    
    
    Run

Reply via email to