RosettaCodeData/Task/Variables/Pony/variables-2.pony
2016-12-05 23:44:36 +01:00

6 lines
147 B
Pony

var x: I32 = 10
var y: I32 = x = 20
try
Fact(x == 20) // x gets the new value of 20
Fact(y == 10) // y gets the old value of x which is 10
end