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

[REBOL] Re: Re- Help with script to send (Follow up question

From: carl:cybercraft at: 17-Aug-2004 9:42

>Hi John, > >P> Where can I find a listing of the "system" object refinements, if >P> this is the proper terminology? > >P> Can I type something at the (Rebol) command line? > >help system >help system/options > >(If you're running an old version, e.g. 1.2.1, it won't work)
To get round that, "PROBE FIRST object" can be used, though it's not as verbose with the info you get back. Examples...
>> help system
SYSTEM is an object of value: version tuple! 1.2.46.3.1 build date! 6-Apr-2004/8:27:12-7:00 product word! View core tuple! 2.6.0 components block! length: 48 words object! [unset! error! datatype! context! native! action! ... license string! {REBOL End User License Agreement IMPORTANT. READ ... options object! [home script path boot args do-arg link-url server... user object! [name email home words] script object! [title header parent path args words] etc... whereas PROBE FIRST gives you...
>> probe first system
[self version build product core components words license options user script console ports network schemes error standard view stats locale user-license] To check the type of any of those you can use PROBE TYPE?...
>> probe type? system/version
tuple! == tuple!
>> probe type? system/words
object! == object! And to get their values, just use PROBE...
>> probe system/version
1.2.46.3.1 == 1.2.46.3.1 Or if it's an object again, then use PROBE FIRST again...
>> probe first system/words
[end! unset! error! datatype! context! native! action! routine! op! function! object! struct! library! port! any-type! any-word! any-function! number! series! any-string! any-block! symbol! word! set-word! get-word! lit-word! refinement! none! logic! integer! decimal! money! time! date! char! pair! event! etc... I tend to use PROBE FIRST when I just need a quick reminder of the words in an object, which crops up a lot when working with View faces. -- Carl Read