[chuck-users] severe ChucK v1.3.0.0 bug

Robin Haberkorn robin.haberkorn at googlemail.com
Wed Aug 29 13:57:15 EDT 2012


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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> 


More information about the chuck-users mailing list