Skip to content

'introspect.module' option to not cache module entry#529

Open
s-hadinger wants to merge 1 commit into
berry-lang:masterfrom
s-hadinger:import_module_nocache
Open

'introspect.module' option to not cache module entry#529
s-hadinger wants to merge 1 commit into
berry-lang:masterfrom
s-hadinger:import_module_nocache

Conversation

@s-hadinger

Copy link
Copy Markdown
Contributor

Add ability to load a module (import) without caching the entry in the global table, which makes it possible to completely unload it later:

  • introspect.module(name:string [, noload:bool]) -> any : new noload optional boolean, if true do not cache entry
  • add internal api be_module_load_nocache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant