Copy a string: Difference between revisions

no edit summary
(→‎[[PHP]]: fixed missing quote)
No edit summary
Line 123:
$dst = $src;
 
==[[Pop11]]==
[[Category:Pop11]]
 
In Pop11 normal data are represented by references, so plain assignment
will copy references. To copy data one has to use copy procedure:
 
vars src, dst;
'Hello' -> src;
copy(src) -> dst;
 
One can also combine assignment (initialization) with variable declarations:
 
vars src='Hello';
vars dst=copy(src);
==[[Python]]==
[[Category:Python]]
Anonymous user