Scope modifiers: Difference between revisions
Content added Content deleted
(Added R code) |
(→TI-89 BASIC: new example) |
||
Line 382: | Line 382: | ||
done</pre> |
done</pre> |
||
As you can see, these are very powerful capabilities which make it trivial to write control structures in next to no Tcl code at all. |
As you can see, these are very powerful capabilities which make it trivial to write control structures in next to no Tcl code at all. |
||
=={{header|TI-89 BASIC}}== |
|||
The only scope modifier in TI-89 BASIC is the <code>Local</code> command, which makes the variable local to the enclosing program or function rather than global (in some folder). |
|||
<pre style="font-family:'TI Uni'">Local x |
|||
2 → x |
|||
Return x^x</pre> |
|||
=={{header|Ursala}}== |
=={{header|Ursala}}== |