Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
manual:chapter6:operators:cmd_ovr_eval [2019/10/27 17:17] jojo1973 created |
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 16: | Line 16: | ||
| |**Type**| [[manual: | |**Type**| [[manual: | ||
| |**Parallel list processing**| //Yes, but specific group is determined by the object being evaluated// | |**Parallel list processing**| //Yes, but specific group is determined by the object being evaluated// | ||
| - | |**Affected by flags**| [[manual: | + | |**Affected by flags**| |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| - | |:::| [[manual: | + | |:::| [[manual: |
| + | |:::| [[manual: | ||
| </ | </ | ||
| <callout color=" | <callout color=" | ||
| ---- | ---- | ||
| - | The '' | + | The '' |
| - | The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following | + | The effect of the evaluation and the resulting output depends on the type of object being evaluated, as summarized by the following |
| - | * **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 '' | - __any object__ is '' | ||
| | | ||
| Line 61: | 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 87: | Line 88: | ||
| then the command | then the command | ||
| < | < | ||
| - | 1: 2 | + | 2: 2 |
| + | 1: ' | ||
| …………………………………………………………………………………… | …………………………………………………………………………………… | ||
| - | CIRCUM | + | EVAL |
| </ | </ | ||
| will perform the following steps: | will perform the following steps: | ||
| Line 96: | Line 98: | ||
| - '' | - '' | ||
| - '' | - '' | ||
| - | - '' | + | - '' |
| - | resulting | + | Resulting |
| < | < | ||
| 1: 12.56 | 1: 12.56 | ||
| + | …………………………………………………………………………………… | ||
| + | |||
| + | </ | ||
| + | ---- | ||
| + | The command | ||
| + | < | ||
| + | 1: { ' | ||
| + | …………………………………………………………………………………… | ||
| + | EVAL | ||
| + | </ | ||
| + | will perform the following steps: | ||
| + | - '' | ||
| + | - '' | ||
| + | - '' | ||
| + | |||
| + | Resulting in | ||
| + | < | ||
| + | 1: { 4. } | ||
| …………………………………………………………………………………… | …………………………………………………………………………………… | ||