Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Bug - Pick gives different results depending upon it's data

From: al::bri::xtra::co::nz at: 6-Jan-2001 7:55

Sascha wrote:
> i found this:
What Sascha seems to be refering to is where 'pick on a block! and object! with zero returns different types of results:
>> rebol/version
== 2.4.39.3.1
>> b: [1 2]
== [1 2]
>> pick b 1
== 1
>> pick b 0 ; Note none result here.
== none
>> o: make object! [m: 123] >> pick o 1
== [self m]
>> pick o 0 ; Note error result here.
** Script Error: Out of range or past end ** Near: pick o 0 and:
>> pick :+ 0 ; Crashes Rebol.
'pick with an out of range index on a object or function should return none. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/