Unfortunately, you cannot even declare references to the primitive types like strings. The compiler complains when you do that... On 29/08/12 18:37, Kassen wrote:
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. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users