[REBOL] Re: Function Context Query
From: robbo1mark:aol at: 6-Dec-2001 14:14
Romano,
I understand how and what happens when words which are local to functions are not defined,
they are defined to the 'none value when REBOL evalautes the function, however my contention
is that REBOL should not do this and leave all local words unset if they are not defined,
just as would happen in a 'use context or in the global context system/words, or indeed
an object context although this would involve first defining the new word in the object!
context then explicitly unsetting it with the 'unset function.
My preference would be all words are defined as local to their context, including words
defined in objects, functions and use contexts. All undefined words are intitialised
to the 'unset value and are testable with the value? or unset? get/any 'word functions.
This seems the most logical, simple, straightforward and consistent solution to me, however
it's not REBOL behaviour so we just have to make do with the quirkiness that is current
REBOL behaviour / design.
Makes it much harder for everybody however to have to learn and remeber all these special
cases and exceptions, don't you agree.
cheers,
Mark Dickson
In a message dated Thu, 6 Dec 2001 10:44:00 AM Eastern Standard Time, "Romano Paolo Tenca"
<[rotenca--telvia--it]> writes: