Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.compilers    |    Compiler construction, theory, etc. (Mod    |    2,753 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,040 of 2,753    |
|    Hans-Peter Diettrich to noitalmost    |
|    Re: How to handle qualified identifiers     |
|    22 Jun 11 11:47:19    |
      From: DrDiettrich1@aol.com              noitalmost schrieb:       > What I don't quite understand is how to parse access to a variable in       > an outer stack frame. And I think this is similar to the problem of       > nested procedures (which I also don't quite know how to handle).              First of all: local procedures using local variables in an *outer*       stackframe are problematic. Such a language feature deserves much       work, in detail when you also want to allow to use local procedures as       callbacks (procedure pointers). I'd drop that from my language.              Otherwise John already explained how to pass a reference to outer       stackspace(s) to the nested procedure, as an hidden parameter. But       this added parameter will disallow to give away references to the       local subroutine, because the caller then doesn't know about that       parameter.              DoDi              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca