
I wonder if it's related to the memory address:
fun int almostrandom() {
int a => int b;
return b;
}
while(true)
{
<<< almostrandom() >>>;
100::ms => now;
}
always prints the same number...
while(true)
{
almostrandom() => int d;
<<< d >>>;
100::ms => now;
}
does also...
does "int a" return a memory address or something?
-Mike
On Sat, May 2, 2009 at 4:56 PM, Tom Lieber
On Sat, May 2, 2009 at 4:09 PM, Kassen
wrote: <<< (int a) + 1 >>>;
Likely similar to the previously reported; <<<3 => int foo>>>;
Might be a minor bug because it wouldn't seem anyone would ever do that but it's annoying as that type of structure is one of the things to use when debugging to trace another bug. I often try to print any and all things trying to accertain the type of the return value.
haha, fun!
fun int almostrandom() { int a => int b; return b; }
almostrandom() => int c; almostrandom() => int d; almostrandom() => int e; <<< c, d, e >>>;
-- Tom Lieber http://AllTom.com/ _______________________________________________ chuck-dev mailing list chuck-dev@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev