Liste des Groupes | Revenir à cl forth |
dxf <dxforth@gmail.com> writes:
...Early on DX-Forth it became apparent that maintaining a list of error
messages accessible by means of a THROW code was going to be messy and
worse - costly. I wanted CATCH THROW but could do without the vision
ANS appeared to have in mind for it. The consequence of retaining
ABORT" for classic ambiguous conditions means I can't individually
identify them at CATCH but I've yet to find this a problem.
It probably is not a problem, but your claim of a high cost seems
curious. It seems to me that
open-file throw
is cheaper than
open-file abort" OPEN-FILE failed in INCLUDED"
and that reporting something like "Catch = -37" or somesuch is not
costly to implement at all. And if you want more descriptive error
messages in a resource-constrained and otherwise traditional setting,
using the throw code to select a line from a sequence of blocks does
not seem to be particularly expensive, either.
I'm curious whether others found ANS' requirement above 'a step too far'?
It seems that if we have noticed it at all, many of us chose to ignore
it.
Les messages affichés proviennent d'usenet.