Liste des Groupes | Revenir à cl forth |
mhx@iae.nl (mhx) writes:My mental model (in a basic Forth context) recognizes a pattern where>1_0 2_0 + . \ output: 30>
Sorry, I really don't like this. It takes away my
underlying mental model of how things should work.
What happens for "10_ 20_ + ." ?
It outputs 30, too. The intended use of _ in Gforth is like this:
>
100_000_000_000 20_000_000_000 + . \ outputs 120000000000
>
or with groups of 4 for those environments where that is conventional.
>
What does your underlying mental model say how things should work?
100_000_000_000 20_000_000_000 + . \ outputs 120000000000is not very appetizing because it combines a useful concept
Les messages affichés proviennent d'usenet.