Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:chapter6:operators:cmd_ovr_eval [2019/10/28 15:37] jojo1973 Added example |
manual:chapter6:operators:cmd_ovr_eval [2019/11/17 08:23] (current) jojo1973 Highlighted EVAL when used in technical sense |
||
---|---|---|---|
Line 9: | Line 9: | ||
---- | ---- | ||
^ __Input Stack__ | ^ __Input Stack__ | ||
- | | **O< | + | | **O** | **→** |
| //Level 1// | // | | //Level 1// | // | ||
Line 34: | Line 34: | ||
The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following list. | The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following list. | ||
- | * **Local Name**: //Recalls// the content of the variable. | + | * **Local Name**: |
- | * **Global Name**: //Calls// the content of a variable: | + | * **Global Name**: |
- | - a __Name__ is evaluated; | + | - a __Name__ is '' |
- | - a __Program__ is evaluated; | + | - a __Program__ is '' |
- a __Directory__ becomes the current directory; | - a __Directory__ becomes the current directory; | ||
- __other objects__ which are not lists are put on the stack. | - __other objects__ which are not lists are put on the stack. | ||
- | * **Program**: | + | * **Program**: |
- | - an [[manual: | + | - an [[manual: |
- a __Keyword__ is '' | - a __Keyword__ is '' | ||
- __other objects__ which are not lists are put on the stack. | - __other objects__ which are not lists are put on the stack. | ||
- | * **Symbolic expression**: | + | * **Symbolic expression**: |
- | - a __Name__ is evaluated; | + | - a __Name__ is '' |
- a __Keyword__ is '' | - a __Keyword__ is '' | ||
- __other objects__ which are not lists are put on the stack. | - __other objects__ which are not lists are put on the stack. | ||
- | * **Other objects**: if they are not lists they are put on the stack. | + | * **Other objects**: if they are not lists '' |
- | * **List**: //Enters// each object in the list: | + | * **List**: |
- | - __any object__ is evaluated | + | - __any object__ is '' |
| | ||
As a final step, '' | As a final step, '' | ||
Line 62: | Line 62: | ||
* In userRPL, if the argument is a list '' | * In userRPL, if the argument is a list '' | ||
- | - a __Name__ is evaluated; | + | - a __Name__ is '' |
- | - a __Program__ is evaluated; | + | - a __Program__ is '' |
- a __Keyword__ is '' | - a __Keyword__ is '' | ||
- __other objects__ are put on the stack. | - __other objects__ are put on the stack. | ||
Line 94: | Line 94: | ||
</ | </ | ||
will perform the following steps: | will perform the following steps: | ||
- | - '' | + | - '' |
- | - '' | + | - '' |
- | - '' | + | - '' |
- '' | - '' | ||
- '' | - '' | ||
Line 114: | Line 114: | ||
</ | </ | ||
will perform the following steps: | will perform the following steps: | ||
- | - '' | + | - '' |
- '' | - '' | ||
- '' | - '' |