Core module

The Core module loads some helper functions and globals useful in all stages of a mods life cycle.

All modules have an __index method into core.

Usage

local Core = require('__stdlib__/stdlib/core')

Functions

VALID_FILTER(v) Simple valid check, only available in control stage.
help(self) Help function available on everything.
inspect(self) Inspect the class
log_and_print(msg) Prints and logs the msg

Functions

# VALID_FILTER(v)

Simple valid check, only available in control stage.

! DEPRECATED

Parameters:
  • v
# help(self)

Help function available on everything.

Parameters:
  • self
# inspect(self)

Inspect the class

Parameters:
  • self
# log_and_print(msg)

Prints and logs the msg

Parameters: Returns:
  • (boolean) true if the message was printed to someone