LuaObject.ref constructor

LuaObject.ref(
  1. LuaObject src
)

See toRef. Note that the runtime id will be prefixed with meta information to assist debugging call stacks.

Does NOT adopt the src object's attributes and sets it to null.

Implementation

LuaObject.ref(LuaObject src) : id = 'ref_${src.id}', attr = null, super() {
  _fields = null;
  funcDef = null;
  scope = null;
  _value = src;
}