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

[REBOL] Re: intersting side-effect to dynamic word usage...

From: rotenca:telvia:it at: 16-Nov-2001 3:31

Hi, Brett
> > add the word in system/words, even if you're inserting it in a block > > directly. > > As far as I know, system/words is updated with every word defined in Rebol > by whatever means they are created.
You can create words and use them normally, without adding them to the Global Context. Try:
>> fx: first to-block "foo"
== foo
>> print in context to-block "foo: 3" fx
>> use to-block "foo" bind to-block "foo: 7 print foo" 'system
>> to-path "a/foo"
== a/foo
>> do func to-block "foo" to-block "foo" 10
== 10
>> print in system/words fx
none You must not use load or the default loader (of do and console), to-refinement or to-xxx-word. Becomes a global word also the first element of a path, not the others. If you must load a long data file with many new words, i think could be better to use to-block and not load. --- Ciao Romano