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

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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
CfV: Throw IORs   Message List  
Reply | Forward Message #174 of 425 |
Re: CfV: Throw IORs

> Posted by: "Bernd Paysan" bernd.paysan@... berndpaysan

> Gforth and bigFORTH have made IORs throwable since the dawn of their ANS
> Forth compatibility (both during the draft process). However, we use the
> system-specific part of the throw code table, and have a way how to convert
> signal and errno numbers into the THROW space.
>
> If you relax your proposal in such a way that IORs must be throwable, and
> the system also must provide a way to print out diagnostic strings (e.g.
> the .ERROR we have in Gforth), a consent is easier to reach.

The proposal does not say that you *must* use these numbers, it
says that if you use these numbers, this is what the standard
means by those specific numbers. Consequently gForth will not
conflict with the proposal.

> I like to keep as much information as possible about the
> original error, so mapping errors to words that
> misbehave isn't such a good idea - a word like
> WRITE-FILE can fail for quite a number of reasons (no
> space left on device, pipe closed, low-level IO error,
> buffer outside address space, etc.). A backtracing
> utility is a better way to locate the error, and you'll
> then see which word misbehaved, as well.

Given the range of hardware and O/S, it is impossible in a
standard to go beyond saying that WRITE-FILE failed and a THROW
occurred. Most hosted systems require further work to get an
extended error code and/or string.

> So in general, I fully support the part of your proposal where IORs are made
> throwable, but I don't support your throw code scheme.

Again, the proposal does not make you use these numbers, it says
that if you do use these numbers, this is what they should mean.

Stephen
--
Stephen Pelc, stephen@...
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeforth.com - free VFX Forth downloads




Wed Jul 11, 2007 10:25 am

sfprem
Offline Offline
Send Email Send Email

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

This is actually a poll about how widely the proposal is implemented and how popular it is among the programmers. It is called a CfV (call-for-votes) because...
Peter Knaggs
pknaggs
Offline Send Email
Jul 10, 2007
10:02 pm

... The ballot system doesn't work well to describe how Gforth and bigFORTH do it, so I explain it in words: Gforth and bigFORTH have made IORs throwable since...
Bernd Paysan
berndpaysan
Offline Send Email
Jul 11, 2007
8:01 am

... The proposal does not say that you *must* use these numbers, it says that if you use these numbers, this is what the standard means by those specific...
Stephen Pelc
sfprem
Offline Send Email
Jul 11, 2007
10:29 am

... The proposal is now in the CfV stage and therefore frozen, so it cannot be revised in any significant way. Someone could do an alternative proposal that...
Anton Ertl
anton@...
Send Email
Jul 11, 2007
2:19 pm

... Yes. ... Yes. However, the list of THROW codes in the proposal only reserves numbers for use. There is nothing in it to stop you carrying on using the...
Stephen Pelc
sfprem
Offline Send Email
Jul 12, 2007
1:33 pm
Advanced

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