Confusion over passing by reference vs passing by value
#4
(06-17-2022, 03:07 AM)SMcNeill Wrote: This is expected as strings are *always* passed by offsets.  The solution is as you have found -- assign to a temp variable and don't modify the original.  Wink

Ah, very good. I wasn't aware that there was a difference between how the strings and numerical variables were handled in this regard.

I learn new things every day. The trick is in trying to remember all of it :-)
Reply


Messages In This Thread
RE: Confusion over passing by reference vs passing by value - by hanness - 06-17-2022, 06:16 AM



Users browsing this thread: 4 Guest(s)