Re: Pass by Reference

new topic     » goto parent     » topic index » view thread      » older message » newer message
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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu