However, speed tests have shown extensively that passing pointers is typically about 50% faster in simple test loops.
So, my questions is this: What happens "under the hood" (aka "behind the scenes") when I pass a string?
Code: Select all
Procedure StringTest(s.s)
a.s = s.s
ProcedureReturn a
EndProcedure
GlobalString.s = "string"
t.s = StringTest(GlobalString)Also, if I send a sum of strings (i.e. "x="+str(x) ), is it safe to assume that a temporary string is created? If that is the case, is that temp var used, or is yet another created to be passed?
Thanks.

