Fork: Difference between revisions

m
m (→‎{{header|Sidef}}: fix example)
Line 1,145:
=={{header|Sidef}}==
<lang ruby>var x = 42;
var child = { x += 1; say x }.fork.wait; # x is 43 here
say x; # but xhere is still 42</lang>
say child.wait; # prints: 43
say x; # but x is still 42</lang>
 
=={{header|Slate}}==
2,747

edits