【发布时间】:2013-07-16 20:12:33
【问题描述】:
假设我定义了几个词:
Word1: 5
Word2: "blahdiddyblah"
系统中是否有某些部分或块存储正在使用的单词?
尝试了类似的方法但失败了:
S1: to-block copy system/contexts/user
D: 3
S2: to-block copy system/contexts/user
Difference s1 s2
根据@johnk 的建议,我试过了:
>> snapshot-of-words: words-of system/contexts/user
== [system snapshot-of-words words-of contexts user]
>> x: 1
== 1
>> difference snapshot-of-words words-of system/contexts/user
== [x difference]
>> difference snapshot-of-words words-of system/contexts/user
== [x difference]
>> 5 + 9
== 14
>> form ["hellow" "there" ]
== "hellow there"
>> difference snapshot-of-words words-of system/contexts/user
== [x difference + form]
这是什么意思?本机函数在使用后绑定到用户上下文中?有没有办法将这些与用户可能绑定的内容隔离开来?
【问题讨论】:
-
无论是在脚本还是控制台中,使用的任何内置词都会在用户上下文中绑定
-
涉及到 LOAD-GUI 要复杂得多,因为它绑定了很多不同的词
-
在 load-gui 之前或之后检查对我想要做的事情没有帮助
-
load-gui加载的 Rebol 3 GUI 还没有真正模块化,所以我预计它会在用户上下文中泄漏很多单词。不要假设您发现的任何单词都是故意泄露的,除非它们被记录在案,甚至可能没有。如果你想帮助他们收拾东西,那就太好了。