NAME ^

classes/closure.pmc - Closure PMC

DESCRIPTION ^

This class implements a closure, i.e. a subroutine which take a context structure.

Methods ^

void init()

Initializes the closure.

void mark()

Marks the closure as live.

void *invoke(void *next)

Invokes the closure.

PMC *clone()

Creates a clone of the closure and returns it.

HISTORY ^

Initial version by Leo.


parrot