Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #42498
| From | "WJ" <w_a_x_man@yahoo.com> |
|---|---|
| Newsgroups | comp.lang.forth |
| Subject | Re: Newbie alert: what is the ANS word for clearing the stack without aborting? |
| Date | 2015-10-09 13:46 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <mv8gfl$lbs$1@dont-email.me> (permalink) |
| References | <549578e4-aa40-4ea4-b3f2-568a39bb4a7a@googlegroups.com> |
Chris Curl wrote: > I have seen a 0SP word bandied about, which is easy enough to implement. > > : 0SP DEPTH ?DUP IF 0 DO DROP LOOP THEN ; The standard Forth word to clear the stack is "clr". Oforth: >2 3 4 .s [1] (Integer) 4 [2] (Integer) 3 [3] (Integer) 2 ok >clr .s Empty
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Newbie alert: what is the ANS word for clearing the stack without aborting? Chris Curl <ccurl609@gmail.com> - 2015-10-09 06:30 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? "WJ" <w_a_x_man@yahoo.com> - 2015-10-09 13:46 +0000
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Coos Haak <chforth@hccnet.nl> - 2015-10-09 17:35 +0200
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Mark Wills <markwills1970@gmail.com> - 2015-10-09 07:08 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Coos Haak <chforth@hccnet.nl> - 2015-10-09 17:38 +0200
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Ching-Tang Tseng <ilikeforth@gmail.com> - 2015-10-09 08:10 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Coos Haak <chforth@hccnet.nl> - 2015-10-09 17:42 +0200
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Chris Curl <ccurl609@gmail.com> - 2015-10-09 08:57 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Ching-Tang Tseng <ilikeforth@gmail.com> - 2015-10-09 08:59 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2015-10-09 16:00 +0000
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-09 08:38 -1000
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Chris Curl <ccurl609@gmail.com> - 2015-10-09 12:31 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? "Elizabeth D. Rather" <erather@forth.com> - 2015-10-09 10:29 -1000
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? "HAA" <someone@microsoft.com> - 2015-10-11 11:51 +1000
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? Ching-Tang Tseng <ilikeforth@gmail.com> - 2015-10-10 18:28 -0700
Re: Newbie alert: what is the ANS word for clearing the stack without aborting? hughaguilar96@gmail.com - 2015-10-10 22:53 -0700
csiph-web