object:setExtension()

Type Function
Object CoronaPrototype
Library none
Return value none
Revision 2017.3178

Overview

Objects based on CoronaPrototype cannot have their __index metamethod overridden.

When called, indexFunc will be called prior to the original __index metamethod. If indexFunc returns nil, then the original metamethod is called.

Syntax

object:setExtension( indexFunc )
indexFunc (required)

Function. The index function.