in reply to Perl Forth interpreter

Okay, another question. If I enter

1 10 100 + . CR
why does the interpreter print 1 instead of 110?

Replies are listed 'Best First'.
Re^2: Perl Forth interpreter
by GrandFather (Saint) on Jun 01, 2009 at 09:55 UTC

    Because of a bug! The four arithmetic routines should push @stack, ... instead of return ....


    True laziness is hard work