You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. Silly question I couldn't get answered reading the wiki:
When sending a struct as a method argument, is it by copy or reference?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
It is not copied. It passes the pointer address, so it behaves as if it were passed by reference.
Technically it's passing a pointer, but for all intents and purposes, they'll behave more or less similar enough to not care about this subtle difference.
Hi. Silly question I couldn't get answered reading the wiki:
When sending a struct as a method argument, is it by copy or reference?
Thanks in advance.
The text was updated successfully, but these errors were encountered: