Copy a string: Difference between revisions

no edit summary
(→‎[[Toka]]: Added VB)
No edit summary
Line 215:
 
Be careful with 'is' - use it only when you want to compare the identity of the object. To compare string values, use '=='.
 
==[[Raven]]==
[[Category:Raven]]
 
Copy string by reference:
 
'abc' as a
a as b
 
Copy the string by value:
 
'abc' as a
a copy as b
 
==[[Ruby]]==
Anonymous user