Re: clearing the stack

From: Joel Reymont <joelr1_at_gmail.com>
Date: Mon, 12 Jan 2009 18:14:11 +0000

On Jan 12, 2009, at 6:09 PM, Allen Anway wrote:

> My 2 cents worth on clearing out the stack:
>
> : ..S .S SP@ DEPTH 1- CELL * + SP! ." SP! " ;

Thank you Allen and Gene!

I find Gene's version easier to grok.

Which one is more efficient, though?

I know it hardly matters when clearing a few items
from the stack interactively but I'm still curious.

        Thanks, Joel

---
http://wagerlabs.com
----------------------------------------------------------------------
sftalk_at_forth.com      The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users.  For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Jan 12 2009 - 10:14:38 PST

Subscribe to our e-mail list service. It's free for all SwiftForth and SwiftX users!

This archive was generated 08-Feb-2012. Archive updated nightly.