Topic variable: Difference between revisions

Content added Content deleted
(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="ecmascript">var T // global scope
<syntaxhighlight lang="wren">var T // global scope


var doSomethingWithT = Fn.new { [T * T, T.sqrt] }
var doSomethingWithT = Fn.new { [T * T, T.sqrt] }