[chuck-users] division by zero bug

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


the following code does not crash nor throw any exceptions:

0 => float z;
2::second => dur n;
n/z => dur k; // division by zero!!
   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.


More information about the chuck-users mailing list