Anonymous user
Dynamic variable names: Difference between revisions
Added Epoxy
Thundergnat (talk | contribs) m (→{{header|C sharp}}: Regularize header markup to recommended on category page) |
(Added Epoxy) |
||
Line 293:
This example deliberately doesn't use any temporary variables so their names won't clash with what the user might enter. A <code>set</code> like this hits any <code>let</code> dynamic binding or buffer-local setting in the usual way.
=={{header|Epoxy}}==
The debug library allows you to add, get, and delete variables.
<lang epoxy>--Add user-defined variable to the stack
const VarName: io.prompt("Input Variable Name: "),
VarValue: io.prompt("Input Variable Value: ")
debug.newvar(VarName,VarValue)
--Outputting the results
log(debug.getvar(VarName))</lang>
{{out}}
<pre>
Input Variable Name: Test
Input Variable Value: Hello, world!
Hello, world!
</pre>
=={{header|Erlang}}==
|