NAME ^

src/sub.c - Subroutines

DESCRIPTION ^

Subroutines, continuations, co-routines and other fun stuff...

Functions ^

mark_context

Marks the context *ctx.

new_sub

Returns a new Parrot_sub.

new_closure

Returns a new Parrot_sub with its own sctatchpad.

XXX: Need to document semantics in detail.

new_continuation

Returns a new Parrot_cont to the context of to with its own copy of the current interpreter context. If to is NULL, then the to_ctx is set to the current context.

new_ret_continuation

Returns a new Parrot_cont pointing to the current context.

new_coroutine

Returns a new Parrot_coro.

XXX: Need to document semantics in detail.

new_ret_continuation_pmc

Returns a new RetContinuation PMC. Uses one from the cache, if possible; otherwise, creates a new one.

invalidate_retc_context

Make true Continuation from all RetContinuations up the call chain.

Parrot_full_sub_name

Return namespace, name, and location of subroutine.

Parrot_find_pad

Locate the LexPad containing the given name. Return NULL on failure.

SEE ALSO ^

include/parrot/sub.h.

HISTORY ^

Initial version by Melvin on 2002/06/6.


parrot