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

[REBOL]How to distinguish between rebol values (native, action, valu

 [1/3] from: al::bri::xtra::co::nz at: 29-Nov-2000 15:58


Tim wrote:
> For parse, rebol says that parse is a native value > For find, rebol says that find is an action value > For append, rebols says that append is a function value > > To this ol' C-dog, they all act like functions to me, but you see, I'm
putting up an on-line class on programming using rebol, and I could use some help on clearifying the distinctions between native, action, and value. 'append is a function! datatype (or value), because it's a Rebol function. For 'parse, native is a C function, not a Rebol function. I don't what the distinction is between action and native value are, except that I can guess that action applies to data objects much like a function calling a member function in a object does in C++? Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [2/3] from: larry:ecotope at: 28-Nov-2000 19:32


Hi Tim Actually there are the following kinds of "functions" in REBOL, all of which will test true using any-function? function! Example: APPEND A function written in REBOL either by the user or a mezzanine included with the REBOL distribution native! Example: SINE A compiled function existing only as native code (x86, etc) action! Example: FIRST A polymorphic compiled function (set up to apply to many different data-types) op! Example: + An infix operator existing only as native code You can use help to get a list for each of these types. For example:
>> help op!
Found these words: * (op) ** (op) + (op) - (op) / (op) // (op) < (op) <= (op) <> (op) = (op) == (op) =? (op)
> (op) >= (op)
and (op) or (op) xor (op)
>>
HTH -Larry ----- Original Message ----- From: Tim Johnson <[tim--johnsons-web--com]> To: <[rebol-list--rebol--com]> Sent: Tuesday, November 28, 2000 6:47 PM Subject: [REBOL] [REBOL]How to distinguish between rebol values (native, action, value)

 [3/3] from: tim:johnsons-web at: 29-Nov-2000 8:12


Hello!! My thanks to Larry and Andrew :-) :-) regards Tim Larry Palmiter wrote: