Hi everyone, I recently noticed that floats are accepted as array indices ( scratchpad ) pi { 1 2 3 4 } nth . 4
I noticed this because there was a bug in my program that led a float to be used. It feels like using reals as indices is almost an error and should throw an exeption at runtime. Right now, they're silently cast to fixnums before accesing the array, so the index used is the floor of the real. What do you think ? Jon Harper ------------------------------------------------------------------------------ _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk