From 76ce905ef3e93f067b6d06458186bcf9eb9b5c01 Mon Sep 17 00:00:00 2001 From: ame Date: Sat, 3 Aug 2024 02:30:02 -0500 Subject: fix tests, module based require, thread improvments --- docs/readme.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/readme.md b/docs/readme.md index c9aa7d7..26fc5cb 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -15,3 +15,21 @@ llib.io.pprint(llib) --pprint is a part of the io module, pprint meaning pretty all subtables and functions have a corresponding file in this directory on usage +you can also select just a specific module + +```lua +crypto = require "lullaby.crypto" +crypto.sha224() +``` + +--- + +## big changes + +### __clone metamethod (todo) + +takes a single argument (the object to be cloned) returns a 'copy' of the object + +this is for cloning a object to be the same, but not share any internals + +created for luaI_deepcopy (see src/lua.c) too create a seperate object for the other state -- cgit v1.2.3