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

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

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 #43 of 425 |
Re: [forth200x] RfD: One-time file loading

> - We want to allow that behaviour of INCLUDE along with
> behaviour that does not change the BASE (since both variants
> have existing practice). That would result in adding, e.g,
> the following to the definition of INCLUDE:
>
> "An ambiguous condition exists if the value of BASE is not
> (decimal) ten."

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 includes the lines:

only forth definitions
decimal

at the start, and

decimal

at the end. Bugs caused by BASE assumptions can be very hard to
find.

> - We do not want to allow this behaviour and keep the spec as
> it is. IMO it is confusing if INCLUDE silently changes BASE and
> INCLUDED does not. Which systems have this behaviour, and
> are the maintainers willing to change it?

I don't know. At present we do not do it.

> Just checking: INCLUDED in MPE's Forth systems has done
> something to the dictionary that did not come from the included
> file?

We keep a linked list of included file names. This behaviour is
the default, but can be disabled. Nobody has ever complained
about it. I certainly would not get Willem at CCS to agree with
a commitment to contiguity of data space at the start/end of
INCLUDED. The functionality given by persistent storage of
source file information is just too useful. I have only seen one
occasion in which source code has been affected by the
dictionary being non-contiguous across INCLUDE or INCLUDED.

: parser ... ;
create AsmTable
include opcodes.def

: parser ... ;
create DasmTable
include opcodes.def

: parser ... ;
create SimTable
include opcodes.def

The pain caused by this restriction was not enough to consider
changing the implementation.

> With both Win32Forth and MPE doing this without any complaints, I
> guess there is a pretty strong case for adding this restriction:
> system implementors have found it useful, and programmers have
> not had problems with it.

Just add that HERE may change, or is the term
"data space may not be contiguous"
more in line with the current wording.

Stephen

--
Stephen Pelc, stephen@...
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 23 80 631441, fax: +44 23 80 339691
web: http://www.mpeforth.com - free VFX Forth downloads



Fri Jan 13, 2006 10:25 am

sfprem
Offline Offline
Send Email Send Email

Forward
Message #43 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