lambda-ccc
lambda-ccc copied to clipboard
Unshadowing happens too late
The final unshadow in test/Auto.hss comes too late, after conversion of lambda-bound variables into reified form. At that time, variables aren't variables, so unshadowing doesn't help.
When to unshadow? Ideas:
- On result of inlining, at least for dictionary methods, which reveals auto-generated accessor code.
- Right before replacing a lambda-bound variable.
- Use a HOAS interface, moving the problem elsewhere.