archseer/enigma

Code reloading / Module versions

archseer opened this issue · 0 comments

Update the module registry to store RcModule (Arc) instead of Box, and update all *const Module to be RcModule. Loading the same module into the VM should swap it in the registry, meaning all new module registry lookups will return the new module. Meanwhile, references to the old Module will still work until they all die, at which point the module will be dropped.