Next: , Up: GObject high-level


4.10.1 g-object

— Class: g-object

A base class for all GObject classes.

— Accessor: pointer g-object

An accessor that accesses the foreign pointer to object.

— Function: release
     (release object)

Releases the object by dropping the reference from it in advance before GC reclaims it. Use this function as an optimization measure when you know that some object will not be needed. All access to the object's properties will be invalid after this function is called.

— Macro: using
     (using (object expr) &body body)

Evaluates and returns the result of evaluation of the body with object being bound to the result of evaluating expr. Ensures that release is called on object after the body is evaluated.

— Macro: using
     (using ((var1 expr1) (var2 expr2) ... (varn exprn)) &body body)

Evaluates and returns the result of evaluation of the body with vars being bound to the results of evaluating exprs. Ensures that release is called on every var after the body is evaluated.