Pointers and references: Difference between revisions

Content deleted Content added
Franck (talk | contribs)
Trizen (talk | contribs)
m Added Sidef language
Line 1,038:
put a b c;
run;</lang>
 
=={{header|Sidef}}==
A simple example of passing a variable-reference to a function:
<lang ruby>func assign2ref(ref, value) {
*ref = value;
}
 
var x = 10;
assign2ref(\x, 20);
say x; # x is now 20</lang>
 
=={{header|Standard ML}}==