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.cr

Class Method Summary

Class Method Detail

def self.add(identification, value) #

[View source]
def self.delete(identification) #

[View source]
def self.get(identification) #

[View source]
def self.is_registered?(identification) #

[View source]