Switching to use foo struct on Windows VM
bryce at kampjes.demon.co.uk
bryce at kampjes.demon.co.uk
Sun Jul 15 21:23:04 UTC 2007
sig writes:
> Another point why i'd prefer to use a single struct (call it foo, or
> anything else) for interpreter globals, is to encapsulate all global
> values in single place:
> - VM variables
> - pointers to VM functions.
>
> And in generated code use foo->bar for values, and foo->bar(...) for
> function calls.
>
> This will give me ability to replace a function pointer with own code
> on the fly in running VM, without recompiling code at all.
> And moreover, this eliminates the need in having InterpreterProxy
> variable for each plugin.
There are two separate questions here:
* Should you be able to always use foo?
* Should other people be able to not use foo?
In my opinion the ideal answer is yes to both questions.
Bryce
More information about the Squeak-dev
mailing list
|