Pass by reference or by value???

DerekHoffmanDerekHoffman Junior MemberPosts: 22
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 Junior Member Posts: 2,154
    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.
  • DerekHoffmanDerekHoffman Junior Member Posts: 22
    I was afraid of that...

    Thanks Joe.
Sign In or Register to comment.