Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
-module( dynamic_variable_names ).
|
||||
|
||||
-export( [task/0] ).
|
||||
|
||||
task() ->
|
||||
{ok,[Variable_name]} = io:fread( "Variable name? ", "~a" ),
|
||||
Form = runtime_evaluation:form_from_string( erlang:atom_to_list(Variable_name) ++ "." ),
|
||||
io:fwrite( "~p has value ~p~n", [Variable_name, runtime_evaluation:evaluate_form(Form, {Variable_name, 42})] ).
|
||||
Loading…
Add table
Add a link
Reference in a new issue