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

[globals] Handy function for determining what words are global

 [1/6] from: atruter::labyrinth::net::au at: 1-Mar-2004 14:13


For those who would like to know just exactly what those global words are. <code> w: copy [] f: copy [] n: copy [] o: copy [] a: copy [] foreach word load mold first system/words [ if value? word [ insert tail w word if function? get word [insert tail f word] if native? get word [insert tail n word] if op? get word [insert tail o word] if action? get word [insert tail a word] ] ] print reform [ length? first system/words "system/words^/" length? w "global words^/^-" length? f "funcs ^/^-" length? n "natives^/^-" length? o "ops^/^-" length? a "actions" ] </code> To see a list of native!'s (for example), just use "help n". Regards, Ashley

 [2/6] from: ammon:addept:ws at: 29-Feb-2004 21:10


Slighty related here, is a mezzanine 'what
>> ? what
USAGE: WHAT DESCRIPTION: Prints a list of globally-defined functions. WHAT is a function value. Enjoy!! ~~Ammon ;~> ----- Original Message ----- From: "Ashley Tr=FCter" <[atruter--labyrinth--net--au]> To: <[rebol-list--rebol--com]> Sent: Sunday, February 29, 2004 8:13 PM Subject: [REBOL] [globals] Handy function for determining what words are global

 [3/6] from: antonr:iinet:au at: 1-Mar-2004 21:20


Sorry to destroy your example, but this is already built into help.. :) eg. Try these at console:
>> help native! >> ? op! >> ? tuple!
etc. for other datatypes. Anton.

 [4/6] from: atruter:labyrinth:au at: 1-Mar-2004 22:18


> Sorry to destroy your example, but this is > already built into help.. :) eg. Try these at console: > >>> help native! >>> ? op! >>> ? tuple! > > etc. for other datatypes.
Hey not fair! Somebody added this to new VID 1.3 betas while I wasn't looking ;) Or at least that's my story, as:
>> system/version
== 1.2.10.3.1
>> help native!
No information on native! (word has no value) Regards, Ashley

 [5/6] from: didec:tiscali at: 1-Mar-2004 22:33


Re: Re: [globals] Handy function for determining what words are global
> Hey not fair! Somebody added this to new VID 1.3 betas while I wasn't > looking ;) Or at least that's my story, as: > > >> system/version > == 1.2.10.3.1 > >> help native! > No information on native! (word has no value) >
Hum, strange as it works with 1.2.8 (??)
> Regards, > > Ashley >
DideC

 [6/6] from: g:santilli:tiscalinet:it at: 1-Mar-2004 22:47


Hi Dide, On Monday, March 1, 2004, 10:33:58 PM, you wrote: D> Hum, strange as it works with 1.2.8 (??) 'NATIVE! being unset was a bug of 1.2.10. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/