Reputation: 12580
For example,
let procedure string-to-task "print ?"
(run procedure "hello")
There a couple reasons one would want to do this:
Upvotes: 4
Views: 125
Reputation: 30498
You sure can! Using this one weird only-obvious-in-retrospect trick:
to-report string-to-task [s]
report runresult (word "task [" s "]")
end
Note that this will return either a reporter task or a command task, depending on the contents of the input string.
Upvotes: 4