I encountered a strange case where a variable was changing value within the scope of an if statement, because I had a superclass with an identical variable name. I am able to reproduce it with this simple case:Prints out:
class A
{
10000 => int foo;
}
class B extends A
{
fun void bar()
{
0 => int foo;
<<< "a", foo >>>;
{
<<< "b", foo >>>;
}
<<< "c", foo >>>;
}
}
a 0
b 10000
c 0
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users