Re: Pass by Reference
- Posted by mattlewis (admin) Sep 12, 2009
- 2248 views
jacques_desch said...
Can a variable be on the stack if it is not a procedure argument or local variable? If not so I don't see how this can be a problem. At parse time we know that a variable is on stack and so can forbid reference to it. Please show me an exemple where it's not true.
Yes, we'd know this at parse time, and simply only allowing var_id references to top level variables is the easiest, and probably least error prone way to implement this.
Matt