History variables: Difference between revisions
Content added Content deleted
Thundergnat (talk | contribs) (Rename Perl 6 -> Raku, alphabetize, minor clean-up) |
|||
Line 568: | Line 568: | ||
2013-Jan-19 23:04:55.1662596; goodby |
2013-Jan-19 23:04:55.1662596; goodby |
||
</pre> |
</pre> |
||
=={{header|EchoLisp}}== |
=={{header|EchoLisp}}== |
||
No native support. We implement an anonymous stack associated with the variable, and a few syntax rules to define the needed operations. |
No native support. We implement an anonymous stack associated with the variable, and a few syntax rules to define the needed operations. |
||
Line 594: | Line 595: | ||
(h-undo x) → ❌ error: no more values x |
(h-undo x) → ❌ error: no more values x |
||
</lang> |
</lang> |
||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA 5.0 : |
ELENA 5.0 : |
||
Line 1,147: | Line 1,149: | ||
</pre> |
</pre> |
||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Julia currently does not support overloading the assignment "=" operator. |
Julia currently does not support overloading the assignment "=" operator. |
||
Line 1,811: | Line 1,814: | ||
undo 3, current value: a |
undo 3, current value: a |
||
$x is: a</lang> |
$x is: a</lang> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
Line 2,081: | Line 2,057: | ||
(check-equal? (hvar-current hv) 0) |
(check-equal? (hvar-current hv) 0) |
||
</lang> |
</lang> |
||
⚫ | |||
(formerly Perl 6) |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|REXX}}== |
=={{header|REXX}}== |
||
Line 2,348: | Line 2,353: | ||
x history. |
x history. |
||
</lang> |
</lang> |
||
=={{header|Swift}}== |
=={{header|Swift}}== |
||
Swift does not support history variables. However, you can add a watcher that can track when the variable will change. |
Swift does not support history variables. However, you can add a watcher that can track when the variable will change. |