Dictu icon indicating copy to clipboard operation
Dictu copied to clipboard

Import library

Open Jason2605 opened this issue 5 years ago • 0 comments

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

  1. Ability to reload an imported module.
  2. Ability to import a dynamically created path.
  3. Potential to add a method to unload a module.

Jason2605 avatar Sep 21 '20 11:09 Jason2605