RosettaCodeData/Task/Runtime-evaluation-In-an-environment/OoRexx/runtime-evaluation-in-an-environment.rexx
2023-07-01 13:44:08 -04:00

8 lines
184 B
Rexx

say evalWithX("x**2", 2)
say evalWithX("x**2", 3.1415926)
::routine evalWithX
use arg expression, x
-- X now has the value of the second argument
interpret "return" expression