Overview
| Artifact ID: | 97b9725b317eea902b744a499781f4d909cf6d53 |
|---|---|
| Ticket: | 4af2f209f29c3d12e7302780135cbcb907234acb
oo::define variable |
| User & Date: | dkf on 2016-08-20 15:53:25 |
Changes
- icomment:
Adjusting the variable resolver's rules on a class from within a running <s>method</s> constructor? Yuck. There's literally no way to make that nice and reliable without slowing ordinary code down. The core issue is that compiled variables are resolved earlier, during the creation of the stack frame (with some magic caching to speed it up), but when there's a direct lookup by name that's done through the resolver anyway. Since the resolver is <i>by design</i> expensive and reliant on compilation for speed, there's no way we want to bring it in on every variable access. There's a minor issue that we could fix things by doing a bytecode flush when the resolver is changed... but it is such a nasty edge case. There's really no good reason to do this that I can think of and there are trivial workarounds (e.g., mixing in a class would work better). I really don't think we'll ever fix this. There's literally no good way to do it.
- login: "dkf"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Wont Fix"
- username: "dkf"