[chuck-dev] mini ChucK bug
mike clemow
gelfmuse at gmail.com
Sat May 2 17:05:41 EDT 2009
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 <lieber at princeton.edu> wrote:
> On Sat, May 2, 2009 at 4:09 PM, Kassen <signal.automatique at gmail.com> 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 at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
>
--
http://michaelclemow.com
http://semiotech.org
More information about the chuck-dev
mailing list