Dictu
Dictu copied to clipboard
Import library
Import library
This ticket could probably be broken down into smaller subtasks, but for now i'll leave it as one. Currently within Dictu once a module has been imported, it is cached for the entirety of the lifetime of the VM, this means if the module is changed from the time it has been imported the changes are not reflected. This is fine for most cases however there may be occasions where modules need to be reloaded without the need to restart the VM. Alongside this, modules can only be imported using a string constant (outside of builtin modules); I think this makes sense. For dynamic imports there should however be a method as part of this new Import library (name TBD).
Breakdown
- Ability to reload an imported module.
- Ability to import a dynamically created path.
- Potential to add a method to unload a module.