It should prorate the value between the floor and ceiling! :)
On Wed, Apr 21, 2010 at 5:33 AM, Jon Harper <[email protected]> wrote:
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
--
Jim
"I'm for extending the working Medicare program for our seniors all the way
back to contraception, so Americans can concentrate on living their lives
without fear of changing a job, going bankrupt from deductibles or fighting
HMO bureaucracy."
------------------------------------------------------------------------------
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk