Re: [Factor-talk] real numbers as array indices

2010-04-23 Thread Stefan Schmiedl
On Wed, 21 Apr 2010 11:36:25 -0400 Kevin Reid wrote: > On Apr 21, 2010, at 11:30, Jim mack wrote: > > On Wed, Apr 21, 2010 at 5:33 AM, Jon Harper > > It should prorate the value between the floor and ceiling! :) > > Ow ow ow ow ow ow. which is about what you'd expect to get accessing someth

Re: [Factor-talk] real numbers as array indices

2010-04-21 Thread Kevin Reid
On Apr 21, 2010, at 11:30, Jim mack wrote: > On Wed, Apr 21, 2010 at 5:33 AM, Jon Harper > wrote: > >> Hi everyone, >> I recently noticed that floats are accepted as array indices >> >> ( scratchpad ) pi { 1 2 3 4 } nth . >> 4 > > It should prorate the value between the floor and ceiling! :) O

Re: [Factor-talk] real numbers as array indices

2010-04-21 Thread Jim mack
It should prorate the value between the floor and ceiling! :) On Wed, Apr 21, 2010 at 5:33 AM, Jon Harper 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 tha

[Factor-talk] real numbers as array indices

2010-04-21 Thread Jon Harper
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