Re: clearing the stack

From: Rick VanNorman <rick_at_neverslow.com>
Date: Mon, 12 Jan 2009 12:17:16 -0600

Hi Guys,

The real problem with clearing the stack is that if you are in the middle of
a catch frame when you reset the stack, you can hose yourself.

If you don't care, try this:

: /STACK S0 @ SP! ;

rick

>>
>>> I feel silly asking this but... how do you clear the stack?
>>>
>>> gforth has clearstack.
>>>
----------------------------------------------------------------------
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:17:36 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.