Liste des Groupes | Revenir à cl forth |
On 02-06-2025 12:44, albert@spenarnc.xs4all.nl wrote:In 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?
Les messages affichés proviennent d'usenet.