Stephen Pelc wrote:
>
> On 10 Jan 2006, at 20:02, Anton Ertl wrote:
> > Currently INCLUDED is specified as not doing anything in
> > particular about these issues (i.e., INCLUDED does not change
> > these on its own; the interpreted file might change them). I
> > don't think that we can change this. Even if we could, I don't
> > see that we can find consensus on what to do given the
> > conflicting approaches to this problem in the Forth community.
>
> I would argue that since INCLUDE isn't specified (but should be)
> both REQUIRE and INCLUDE can be specified as desired.
My interpretation is that since the standard does not explicitly allow
that INCLUDED changes, e.g., BASE, in a standard system INCLUDED must
leave BASE alone, just like : must leave BASE and the search order
alone, or like most other words must leave them alone.
> Setting
> base to DECIMAL in INCLUDE is already done by some systems AFAIR.
These systems are non-standard. Warning of non-decimal base shopuld
be equally effective and is compatible with the standard.
BTW, on a closely related topic:
The standard does not allow that INCLUDED does something to the
dictionary. However, allowing that would simplify the implementation
of REQUIRED (the filename could be stored in a special wordlist), and
probably would not break existing programs; Win32Forth already does
this, and apparently nobody has complained about it. So one might
consider adding this restriction to INCLUDED.
- anton