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

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

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

> REQUIRE name
>
> The name is modeled on the relation between INCLUDED and
> INCLUDE, and also on Emacs Lisp's require. However, this word
> has been implemented under other names: NEEDS in various
> systems, REQUIRES in PFE and MPE's systems.

> * Both Forth.com's Swiftforth and MPE's ProforthVFX have
> defined `requires` as the selfparsing version of `required`,
> and they use it. PFE will adopt this in the next version (>
> 0.30.30)

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 others have noted, mandating the use of INCLUDED rather than
its functionality may raise issues.

In order to ease use of library code, it may be as well to
consider specifying how the following items are handled when the
file/source is INCLUDED:
BASE decimal?
search order
...

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



Mon Jan 9, 2006 12:46 pm

sfprem
Offline Offline
Send Email Send Email

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