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

[ALLY] Datatype numbering and the Missing Datatypes Re:(2)

From: allenk:powerup:au at: 22-Sep-2000 1:10

----- Original Message ----- From: <[jeff--rebol--com]> To: <[ally--rebol--com]> Sent: Thursday, September 21, 2000 11:44 PM Subject: [ALLY] Datatype numbering and the Missing Datatypes Re:
> > 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 >
Thanks Jeff. I just had to find the missing pieces, bit like the person who has to know which card is missing from a deck, I know there is no point but I still do it ;-) I'd really like to see a cardinal datatype so 1st 2st 3rd, 3m 3ltr 3km 10lb etc can be used as words, would make block parsing dialects easier when doing weights and measures. I guess I should shoot that off to feedback. Cheers, Allen K