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

[ALLY] Datatype numbering and the Missing Datatypes Re:

From: jeff:rebol at: 21-Sep-2000 6:44

G'day, Allen:
> Hi Ally, > > Found this while I was writing a view function browser > script. > > If you do source unset? you will see it is numbered 1 > unset?: native ["Returns TRUE for unset values." value > [any-type!] 1] > > and source? list shows it is numbered 53. list?: native > ["Returns TRUE for list values." value [any-type!] 53] > > This made me curious so I listed out all of datatypes and > found 51 of them, the missing numbers are 4 and 21. Anyone > know what they are?
Welp, it's not much of a secret that the datatypes in REBOL have these curious little corresponding numbers associated with them. The two missing types that you notice are not represented directly in REBOL but are used internally. These types don't have the full semantics of the rest of the "userland" datatypes. (context! and symbol! respectively). Pay no attention to the little datatypes behind the curtain! :-) -jeff