What the quickest way to clear the stack?

If you have any questions, remarks, ... if you need help... its here...

What the quickest way to clear the stack?

Postby bobgillies » 30 Jan 2017 21:55

In old-school FORTH when the outer interpreter couldn't evaluate a WORD or convert it to a number it just will clear the stack. So, just typing in an undefined WORD ( qjozqde for example) quickly clears the stack as a convenience. Oforth doesn't clear the stack by doing that, and I find myself with a stack depth dozens of object's deep. How do I quickly clear the stack, then?
bobgillies
 
Posts: 60
Joined: 24 Jan 2017 06:26

Re: What the quickest way to clear the stack?

Postby Franck » 30 Jan 2017 21:56

Code: Select all
clr


:)
Franck
 
Posts: 145
Joined: 29 Oct 2014 19:01

Re: What the quickest way to clear the stack?

Postby bobgillies » 30 Jan 2017 22:00

Neat!
bobgillies
 
Posts: 60
Joined: 24 Jan 2017 06:26


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron