Named values, more

From: Andy Valencia From: <vandys_at_nospam.org>
Date: Wed Sep 29 2004 - 11:02:05 PDT

Note that the previously implemented named values:

    : plusplus1 { a b -- c } a b + { sum } sum 1+ ;

now enforces return value format. So if you did:

    : plusplus1 { a b -- c } a b + { sum } ;

you'll get an abort because the stack did not go from two values to one.
Variants are also supported:

    : my@ { key tree -- val T | F } ... ;

So it'll be OK for the return to be one or two words (actual values
are not enforced).

Andy
Received on 29 Sep 2004 18:02:05 GMT

This archive was generated by hypermail 2.1.8 : Tue Sep 26 2006 - 09:03:06 PDT