embedded systems developers tools, cross compilers
  Home  |   SwiftX Archive  |   SwiftForth Archive  |

Variable Stack Effect

From: Bulgrien, Dennis <DBulgrien_at_vcsd.com>
Date: Tue, 24 Sep 2002 14:05:58 -0500

How to reply: Use your email client's "Reply All" function to reply to the
entire list (preferred). Use "Reply" for a private reply to the sender.
--------------------------------------------------------------------------

What is the preferred order and representation for a variable stack effect
with boolean values? Handbook.pdf does not specify.

: word ( -- f | x t ) ...

: word ( -- x t | f ) ...

: word ( -- 0 | x -1 ) ...

: word ( -- false | x true ) ...

etc

The ANS-Forth standard only says:

2.2.2 Stack notation
 ...
( stack-id before -- after )
 ...
When there are alternate after representations, they are described by
"after1 | after2". The top of the stack is to the right. Only those stack
items required for or provided by execution of the definition are shown.
----------------------------------------------------------------------
swiftx_at_forth.com The SwiftX programming discussion email list
To unsubscribe, send subject "unsubscribe swiftx" to listar_at_forth.com
For help with listar commands, send subject "help" to listar_at_forth.com
Archives are located at http://www.forth.com/swiftx -- check them out!
----------------------------------------------------------------------
THIS LIST IS NOT FOR BUG REPORTS! Send bug reports to support_at_forth.com.
Received on Tue Sep 24 2002 - 12:03:30 PDT

This archive was generated by hypermail 2.2.0 : Mon Dec 01 2008 - 03:04:47 PST