On 2-Apr-09, at 2:46 PM, James Long wrote:
I see what you mean, but I was hoping that after all of the macro expansion is finished, we could forego that step of indirection. I'll have to think more about this though, but I'm willing to sacrifice correctness for efficiency if that helps.
Similarly to closures, you have to think about it like this for module instances:
When code is executed in a module, it has to know which module instance is executing so that it can tell which location is referred to when accessing a given module global variable. In other words, the module instance is a parameter of the module's code.
Marc