NAME ^

src/pmc/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 set_pointer(void *value)

Sets the address to the closure entry.

void *invoke(void *next)

Invokes the closure.

void destroy()

Destroys the closure. This is necessary in order to reclaim the context.

HISTORY ^

Initial version by Leo.


parrot