contents   index   previous   next



Literal strings and parameters

 

When a literal string is a parameter to a function, it is passed as a copy, that is, by value. For example, the following code:

 

for (var i = 0; i < 3; i++)

{

   var str = Clib.strcat("dog", "house");

   Clib.puts(str)

}

 

results in the following output:

 

doghouse

doghouse

doghouse


Literal strings and returns