Skip to content

v1.0.0

Choose a tag to compare

@thewizardplusplus thewizardplusplus released this 22 May 07:17
· 30 commits to master since this release

Major version. Implemented the data.to_data() function and serialization to string.

Features

  • data.to_data() function — this function recursively calls the __data() metamethod if it exists;
  • serialization to string:
    • string.to_string() function — this function calls the data.to_data() function and then applies library inspect.lua;
    • Stringifiable mixin — this mixin adds the __tostring() metamethod that calls the string.to_string() function.