Hello Jan,
congrats for grinding through the obstacles of getting hardware
to run!
On 05/07/2012 07:59 PM, Jan Kromhout wrote:
> A few hours ago I first really started amforth
> What strikes me is that I can enter two identical words without an error.
I would not see this as a bug. The behaviour of Forth is
deterministic: it will execute the first word in the vocabulary
with that name, that is the last you defined with that name.
With this feature, you can incrementally expand your definitions:
> : word1 do-this ;
> : word1 word1 do-that ;
which is equivalent of course of
> : word1 do-this do-that ;
I use this sometimes when interactively building up talking to
hardware.
> This is not the case in other forth versions that I have used.
> Is this a conscious choice or a bug?
I'm not a standards boy, so I wouldn't know, if this is
considered a bug.
Cheers,
Erich
|