On 12/04/2014 10:54 PM, Martin Nowak wrote:
On 12/04/2014 09:41 PM, Walter Bright wrote:Yes, it would be written: scope ref T setVal(ref T t) { t.val = 12; return t; }But when there is no scope on the argument, I could not call setVal with a local T variable.
Ah, it's inferred. Makes sense now.