Commit Graph

7 Commits

Author SHA1 Message Date
Bruce Hill
02f708cb04 Added more lenience for creating huge tables. The test shouldn't fail if
creating a giant table runs out of stack, but it definitely shouldn't
segfault.
2018-02-14 14:22:02 -08:00
Bruce Hill
45d410d00c Fixed some severe memory problems with slightly kludgey code. Classes
now have a weak-keyed __buckets field that maps udata->bucket, and
buckets now get auto-collected by GC. __gc metamethod is now gone.
2018-02-12 21:59:01 -08:00
Bruce Hill
565250d326 Fix for tostring relying on stack indices, and some general cleanup. 2018-02-12 20:44:18 -08:00
Bruce Hill
04c20ab009 Optimizations of instantiation (no longer creates table until
necessary).
2018-02-11 17:22:00 -08:00
Bruce Hill
df98ddebd0 Optimized the inst constructor a little bit, cleaned up the shared
bucket metatable, and added a shared class metatable that has a helpful
tostring.
2018-02-11 16:45:26 -08:00
Bruce Hill
0f72014571 Added better support for tuple-like immutable tables. Updated docs and
tests.
2018-02-11 14:56:28 -08:00
Bruce Hill
47f526aaf0 Renamed 2018-02-11 13:43:42 -08:00