prof-braino / propforth

Automatically exported from code.google.com/p/propforth
3 stars 0 forks source link

Propforth.htm Section 3.3 Stack #187

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Users request MORE about the critical nature of the stack, sooner. 

"When you enter a number at the prompt, PropForth puts the numbers on a stack. "

Consider ADD after the above sentence:

"Stack use is one of the most unique, powerful, and important aspect of forth.  
Pay attention here, this is part about the stack is important.   

Forth functions work using the stack the way other language use for example 
LOCAL VARIABLES.  Forth functions (WORDS) consume values off the top of the 
stack, and deposit values onto the top of the stack. 

A word might consume the first item off the stack, and might deposit one item 
onto the stack. 

A word may consume zero or more items from the stack.  Usually words consumer 
no more than three items. With a few exceptions, a give word always consume the 
same number of items each time.  

A word may deposit zero of more items onto the stack. Usually words deposit no 
more than than three items. With a few exceptions a given word will always 
deposit the same number of items each time. 

Some words consume and deposit more than seven items at a time, and some words 
consume and deposit a varying number of values.  These quickly become very 
confusing, so don't do this. "

Original issue reported on code.google.com by prof.bra...@gmail.com on 15 Feb 2013 at 11:26

GoogleCodeExporter commented 8 years ago

Original comment by prof.bra...@gmail.com on 15 Feb 2013 at 11:28

GoogleCodeExporter commented 8 years ago

Original comment by salsa...@gmail.com on 23 Feb 2013 at 11:17