Overview
| Artifact ID: | ac3ca3d83f52937f93dfe5774eabb9bbce1204910bf6910a80a5672eda99b846 |
|---|---|
| Ticket: | 87271f7cd6ab29a076b36e31041a8c940c20d943
TclOO + coroutine + event loop = coredump |
| User & Date: | dkf on 2024-05-23 10:51:08 |
Changes
- closedate changed to: "2460453.95218236"
- closer changed to: "dkf"
- icomment:
We can bump `TCLOO_PROCEDURE_METHOD_VERSION`, but we need all the fields; they contain structures that have to be there for the bytecode compiler to work and that have to have a lifespan the same as the method. The fix to _this_ bug was (at its heart) to put those fields in the `ProcedureMethod` structure rather than trying to hang them off the side with a different lifespan. All the mess that was in there was originally there because I was trying to figure out how to graft TclOO onto the back-end of procedures, which was complicated because TclOO needs to control the current namespace in a different way. I then later bit the bullet and split the guts of the procedure bytecode compiler so that I could pass the things I needed to directly; the `Command` structure then just became a way for communicating with `[info frame]`... but never had that complicated management for handling varying namespaces removed. It didn't matter except when `[info frame]` was mixed with coroutines to mess up the unstacking of contexts. Sounds like Itcl will need to recompile. And we might need to bump the TclOO version number to let them detect. There really isn't a way around the fact that we had to grow the structure.
- login: "dkf"
- mimetype: "text/x-markdown"