29 Aug
2012
29 Aug
'12
12:37 p.m.
Robin;
fun void foo(string s) { <<< s >>>; } I assume that the string value reference is released on foo() return but not increased when passing it to foo().
Yes, me too. That happens though it's not always easy to predict when it will happen. fun void foo(string @ s) {stuff.... ...would sometimes fix it, I seem to remember. This technique is known as "sprinkling in some more @ signs" in professional terms. ;-) Yours, Kas.