Copy a string: Difference between revisions
Content deleted Content added
→[[PHP]]: fixed missing quote |
No edit summary |
||
Line 123: | Line 123: | ||
$dst = $src; |
$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]]== |
==[[Python]]== |
||
[[Category:Python]] |
[[Category:Python]] |