Liste des Groupes | Revenir à cl forth |
On 3/06/2025 5:20 am, Hans Bezemer wrote:Oh dear... brings up an amusing and, at the time, a tedious customer interaction...On 02-06-2025 12:44, albert@spenarnc.xs4all.nl wrote:In the early days of microcomputing memory was severely limited and error codesIn article <nnd$5d07338c$61b87fbd@d4d89ef8da41e19e>,>
Hans Bezemer <the.beez.speaks@gmail.com> wrote:On 31-05-2025 03:10, dxf wrote:<SNIP>not a "hard" code. I mean, even in their freshman years CS students are>
taught to use enums and constants instead of literals.
That is constants that are used more than once with the same meaning.
It is a deadly sin to use throw codes more than once, so this doesn't
apply.>
Hans Bezemer
Wrong. It's a way to abstract a numerical literal - so if things happen to change, you don't have to change them everywhere. It's also a way to self-document a program. Any idea what -22 THROW does (without consulting the standard)? Any idea what E.BADADR THROW does?
were used to save space. But how much need today and what's wrong with ABORT"?
I don't use forth for scripting which might require sending codes and can't think
of an app where I've used codes. Is the ANS list of error codes aimed at special
needs? Because FWIW I'm not feeling any.
Les messages affichés proviennent d'usenet.