Topic variable: Difference between revisions
Content added Content deleted
Jazzedpineda (talk | contribs) (Omitted Microsoft Small Basic) |
m (→{{header|Wren}}: Changed to Wren S/H) |
||
Line 696: | Line 696: | ||
Note that you can't use a single or double underscore as the variable name for this purpose as they always denote instance or static fields of a class. |
Note that you can't use a single or double underscore as the variable name for this purpose as they always denote instance or static fields of a class. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">var T // global scope |
||
var doSomethingWithT = Fn.new { [T * T, T.sqrt] } |
var doSomethingWithT = Fn.new { [T * T, T.sqrt] } |