Generic swap: Difference between revisions

Line 2,502:
 
=={{header|Pike}}==
<lang Pike>mixed first = 5;
mixed bsecond = "foo";
 
mixed a = 5;
mixed b = "foo";
 
void swap(string a, string b)
Line 2,514 ⟶ 2,512:
void main()
{
write("%O, %O\n", afirst, bsecond);
swap("afirst", "bsecond");
write("%O, %O\n", afirst, bsecond);
}</lang>
}
 
 
</lang>
{{out}}
<pre>
Anonymous user