RosettaCodeData/Task/Fork/Sidef/fork.sidef

4 lines
116 B
Plaintext

var x = 42;
{ x += 1; say x }.fork.wait; # x is 43 here
say x; # but here is still 42