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

[REBOL] Puzzle. Exists a not any-type! datatype?

From: rotenca:telvia:it at: 23-Apr-2003 16:49

The answer to this puzzle is "yes": This is the proof, like a puzzle.
>From a console session (View 1.2.8):
object? o; == true first o ;== [self a] type? o/a ;== block! length? o/a ;== 3 -- hu! it should be 2! pick o/a 3 ;== -- mhhhh, unset? unset? pick o/a 3; == false -- no? strange! set/any 'a pick o/a 3 ;** Script Error: set expected value argument of type: any-type ;** Near: set/any 'a pick o/a 3 ; aaaarghhhhhhhhhhhhhhhhhh!!!!!! length? append o/a 1 ;== 4 -- ok pick o/a 4 ;== 1 -- ok again set/any 'a pick o/a 3 ;** Script Error: set expected value argument of type: any-type ;** Near: set/any 'a pick o/a 3 ; aaaarghhhhhhhhhhhhhhhhhh!!!!!! How to build the block o/a? I think it is a Rebol bug, more than a feature. --- Ciao Romano