RosettaCodeData/Task/Runtime-evaluation-In-an-environment/Wren/runtime-evaluation-in-an-environment.wren

13 lines
218 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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)")