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

12 lines
218 B
Text

import "meta" for Meta
var x
Meta.eval("x = 2")
System.print("First x = %(x)")
var y = x // save this value
Meta.eval("x = 5")
System.print("Second x = %(x)")
Meta.eval("x = x - y")
System.print("Delta x = %(x)")