RosettaCodeData/Task/Dynamic-variable-names/Icon/dynamic-variable-names.icon

6 lines
288 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
procedure main(arglist)
if *arglist = 0 then stop("Provide the names of variables in the argument list")
&dump := 1 # dump program state information and variables after run
every variable(!arglist) := 1 # set each user specified variable name in arglist to 1
end