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

[REBOL] Re: Global Words

From: lmecir:mbox:vol:cz at: 2-Jul-2002 9:48

Hi Ammon, I would suggest you to try to read http://www.rebolforces.com/~ladislav/contexts.html . The method described below is incorrect: any-type? a: make error! "OK" sw: 'a either error? try [get to-lit-word mold sw] [ print ["not global " sw] ][ print [" global " sw] ] The result is: not global a , which looks strange at least (and that is not the only case for which the result isn't correct). Others have suggested some methods how to get what you probably want. My guess is, that you would like to have: set-in-global?: func [word [any-word!]] [ not unset? to word! :word ] -L P.S. (To Sunanda) Some Rebol contexts may not have any name. ----- Original Message ----- From: "Ammon Johnson" Hi, I know this is a little slow response, but I thought that you would like to know that this solution seems to work the best of all that I recieved and I am currently in the process of building a utility script that will analyze your script and tell you how many words are in the global context. This script I will release when it is complete (or at least ready for testing...) ;-) Enjoy!! Ammon On Saturday 22 June 2002 04:47 pm, you wrote: