Ticket #67 (closed task: fixed)
Move result_code from analysis to generation
|Reported by:||dagss||Owned by:||robertwb|
|Component:||Code Generation||Keywords:||design internal|
In Pyrex, rather than the result_code being filled in at analysis time, there's a result() method being called during code generation. Moving filling ; then the result temp can be allocated using CodeWriter and so on.
See Greg Ewing's posts in [ this thread].
A lot of things are blocked by this:
- Complex numbers in buffers without a lot of changes/workarounds (#56)
- Closures and generators were off to a good start but where also blocked by this.
My personal opinion is that the workarounds will only pile up, while a change like this could potentially be done without too much trouble and would make it possible to start streamlining some code (especially stop worrying about figuring out workarounds for new code).