module MrbRefTable
Overview
This is a very simple approach to generate artificial references to the wrapped objects. Therefore, the GC won't delete the wrapped objects until necessary. Note that this is currently one-directional, so Mruby might still delete Crystal objects generated from Crystal itself.
TODO Add reset method or transform this module into a class
TODO Add compilation option for ignoring entry checks
Defined in:
MrbRefTable.crClass Method Summary
- .add(identification, value)
- .delete(identification)
- .get(identification)
- .is_registered?(identification)