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

[REBOL] Crippled reflection in Rebol?

From: xapwing:gma:il at: 26-Mar-2007 22:54

Hi all, when I tried to find out the type of several words, I stumbled upon a few problems: when I do:
>> value? :*
== true but:
>> value? :/
** Syntax Error: Invalid word-get -- : ** Near: (line 1) value? :/ Also, when I do:
>> type? '*
== word! but:
>> type? '/
** Syntax Error: Invalid word-lit -- ' ** Near: (line 1) type? '/ So, in Rebol "everybody is equal, but some are more equal than others"... ;-) This way there is no consistency and retrieving such elementary properties can be a pain. Or, what very well might be the case, an I missing something obvious? Another thing is that I tried to obtain the type for a rebol word which I have stored in a string!; example:
>> x: "purple"
== "purple" I found a way to obtain the type in a little bit awkward way:
>> do rejoin ["type? " x]
== tuple! Is there an easier / better way to do it? TIA ! -- Met vriendelijke groet / with kind regards, Arie van Wingerden Yes I'm old. Old enough to remember when the MCP was just a chess program! Dumont (A character in the film TRON) Doneer gratis op / donate free at & Kijk op / look at &