Module Core
Instead of requiring each component of the library seperately you can require this Core file which fill automatically loads all modules.
The Core also has some special features like installing all modules directly into your environment. If you only want to use a selected few modules that's probably a waste of RAM though.
Module Status: Work in progress.
Usage:
local erlib = require('__eradicators-library__/erlib/Core')()
Functions
inject_into_native_lua_modules(ENV) | Injects some methods directly into public modules like string, table, etc. |
install_to_env(ENV, opt) | Makes all erlib modules available directly in ENV. |
run_tests() | Runs all unit tests included in erlib. |
Issues
Core-todo1 | : implement strict wrapping (Verificate.wrap?) erlib_strict[k] = UnknownMagic(v[2],v[1]) |
install_to_env-todo2 | : write lock? read lookup? |
install_to_env-todo2-todo3 | implement strict wrapping |
run_tests-fixme4 | onnthtick calls this twice in the same tick....why? |
Functions
- inject_into_native_lua_modules(ENV)
-
Injects some methods directly into public modules like string, table, etc.
Parameters:
- ENV table the environment in which to carry out the operation
- install_to_env(ENV, opt)
-
Makes all erlib modules available directly in ENV.
Parameters:
- ENV
- opt
- run_tests()
- Runs all unit tests included in erlib. Does not run in non-erlib mods.