Search the web
Sign In
New User? Sign Up
forth200x
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
RfD: One-time file loading   Message List  
Reply | Forward Message #40 of 425 |
Re: [forth200x] RfD: One-time file loading

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



Wed Jan 11, 2006 10:59 pm

anton@...
Send Email Send Email

Forward
Message #40 of 425 |
Expand Messages Author Sort by Date

The HTML version of this RfD is <http://www.complang.tuwien.ac.at/forth/ansforth/required.html> CHANGE HISTORY 2001-08-14: Changed stack effect from ( i*x...
Anton Ertl
anton@...
Send Email
Jan 2, 2006
3:20 pm

... In MPE Forths, REQUIRES refers to the module mechanism. However, since REQUIRED and REQUIRE do not produce a name conflict, I can live with these names. As...
Stephen Pelc
sfprem
Offline Send Email
Jan 9, 2006
12:44 pm

... So should I change, e.g., "perform INCLUDED" into "perform the function of INCLUDED"? Or do you have a bigger change in mind? ... Currently INCLUDED is...
Anton Ertl
anton@...
Send Email
Jan 10, 2006
7:05 pm

... No - that's enough. ... I would argue that since INCLUDE isn't specified (but should be) both REQUIRE and INCLUDE can be specified as desired. Setting base...
Stephen Pelc
sfprem
Offline Send Email
Jan 11, 2006
8:13 pm

... 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...
Anton Ertl
anton@...
Send Email
Jan 11, 2006
10:59 pm

... No - I said INCLUDE - not INCLUDED. Again, this is why wording like " functionality of <name>" is important. INCLUDE and REQUIRE are *not* standard words,...
Stephen Pelc
sfprem
Offline Send Email
Jan 12, 2006
9:38 am

... Ok. In that case, I see two options: - We want to allow that behaviour of INCLUDE along with behaviour that does not change the BASE (since both variants...
Anton Ertl
anton@...
Send Email
Jan 12, 2006
9:23 pm

... Seems good enough, although a statement that it is legal just to select DECIMAL would be more direct. As a side note, the MPE standard source file template...
Stephen Pelc
sfprem
Offline Send Email
Jan 13, 2006
10:23 am

... IMO get-context get-current base @ only forth definitions decimal at the start and base ! set-current set-context at the end is better style (and actually...
Anton Ertl
anton@...
Send Email
Jan 13, 2006
10:03 pm

... Ugly, ugly, ugly! Yes, it works, but it's guru code. Most of our clients really don't want to know this sort of stuff and the crash caused when there's a...
Stephen Pelc
sfprem
Offline Send Email
Jan 17, 2006
12:22 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help