it was not intendend, and it works correctly after fixing it

but fixing that was just one step in the middle to the final target of this 
experiment: change object states without performing copies, but in a safe way. 
I'm trying to remove all the var and casts and favor of sink and lent, without 
success so far

what I would like to do is:
    
    
    var e1 = initExperiment[int, sGas](initialData = 42)
    var e2 = e1.condense()
    var e3 = e2.solidify()
    var e4 = e3.sublimate()
    var e5 = e4.deposit()
    
    
    Run

but I keep facing errors like
    
    
    Error: '=copy' is not available for type <Experiment>; requires a copy 
because it's not the last read of 'condense(e1)'; routine: main
    
    
    Run

Reply via email to