Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass an array as a parameter?
LTee Wrote:A question today, rather than a bug. :-)

Is it possible to pass an array as a parameter to a function or a sub?

And if so, does the function/sub receive a copy of the array or a pointer to the original? i.e. if I made changes to the array within a function, would those changes be local to the function or would they also be visible from the calling method?
Not yet. This is something "in the queue". Most deep code refactoring (like the new preprocessor and so on) are oriented to such things. Please, be patient...
Arrays will be pased like strings (pointers to the HEAP).

Messages In This Thread

Forum Jump:

Users browsing this thread: 1 Guest(s)