Tuesday, May 9, 2006, 11:35:14 PM, Pierre Johnson wrote:
> Two words are aliases if and only if their definitionals are equal > AND they point to the exact same (one and only one) definitional > existing within REBOL controlled memory. > ; note debate: :func || all-truth?: :all || prototype: :context > >> incognito?: debate [ > [ word1 [any-word! path!] > [ word2 [any-word! path!] > [ ][ > [ if all-truth? [defined? 'word1 defined? 'word2] [ > [ either (not same? word1 word2) and (equal? word1 word2) [ > [ true > [ ][ > [ false > [ ] > [ ] > [ > [ ] Tuesday, May 9, 2006, 11:46:15 PM, Pierre Johnson wrote: > defined?: :value? Wednesday, May 10, 2006, 10:44:51 PM, Pierre Johnson wrote: > Unequivocally, Incognito? proves the case of what REBOL interprets > as an alias when previously set using ALIAS. The following problem remains: >> a: context [ x: 1 ] >> b: context [ x: 1 ] >> type? (in a 'x) == word! >> incognito? (in a 'x) (in b 'x) == true Even though a/x and b/x are obviously not related by 'alias. >> a/x: 2 == 2 >> a/x == 2 >> b/x == 1 -- Best regards, Andreas -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
