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

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

From: al:bri:xtra at: 6-Jan-2001 8:49

> Andrew wrote: > > 'pick with an out of range index on a object or function should return
none. Ladislav wrote:
> I would prefer PICK to behave like the PICK-PROP I proposed earlier, i.e.
to fire an error or evaluate the specified handler. We can get some of that functionality with: any [pick block 0 make error! "message here"] or: any [pick block 0 DefaultActionFunction] I think that's acceptable enough for me. Also, I'd make sure that 'none doesn't get into the block in the first place. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/