[chuck-users] division by zero bug

eduard aylon eduard.aylon at gmail.com
Sun Nov 9 13:27:57 EST 2008


Hi,

the following code does not crash nor throw any exceptions:

0 => float z;
2::second => dur n;
n/z => dur k; // division by zero!!
while(true)
{
   k => now;
}


althought it does throw a floating point exception when types are  
ints, it doesn't when types are floats or time based. Well, at least  
on my system: OS X Leopard.

eduard




More information about the chuck-users mailing list