Home AMX User Forum NetLinx Studio

Pass by reference or by value???

Can someone tell me the default method used for passing parameters to functions? It looks like it's passing by reference... Is there anyway to specifically tell the compiler to use one method or the other?

Derek.

Comments

  • Joe HebertJoe Hebert Posts: 2,159
    It looks like it's passing by reference... Is there anyway to specifically tell the compiler to use one method or the other?
    No way to specify as it passes by reference only. I've been caught by that a time or two. If you don't want to modify the data passed in then you have to make a local copy in the function.
  • I was afraid of that...

    Thanks Joe.
Sign In or Register to comment.