ObjectG.setData

Each object carries around a table of associations from strings to pointers. This function lets you set an association.

If the object already had an association with that name, the old association will be destroyed.

class ObjectG
void
setData
(
string key
,
void* data
)

Parameters

key string

name of the key

data void*

data to associate with that key

Meta