ClanSoft logo
ClanSoft logo

    CL_LuaReference::ref

Syntax

void ref(
        const CL_LuaObject& obj,
        int lock=0);

Description

Replace the reference

This method allows the user to replace the referenced object; it is useful when the object is created with the default constructor. _Note_: if there is already a reference to a non-'nil' object, this reference, if not used by other LuaReference objets, should be eliminated (using the 'unref' method) before calling this method.


Back to index



This page was built using the Perceps documentation system.