A
Adam
Hey all,
Forgive what may be a dumb question.
What actually happens when a variable goes out of scope? More
specifically, if I define a variable in a sub-routine (it is thus in
scope only within the subroutine, right?) and explicitly return a
reference to that variable, how can I dereference that return value
outside the subroutine and still have something meaningful?
Hope this makes sense and I can be enlightened!
Adam...
Forgive what may be a dumb question.
What actually happens when a variable goes out of scope? More
specifically, if I define a variable in a sub-routine (it is thus in
scope only within the subroutine, right?) and explicitly return a
reference to that variable, how can I dereference that return value
outside the subroutine and still have something meaningful?
Hope this makes sense and I can be enlightened!
Adam...