| parrotcode: Subroutines | |
| Contents | C | 

src/sub.c - Subroutines

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

void mark_context*ctx.Parrot_sub *new_subParrot_sub.Parrot_sub *new_closureParrot_sub with its own sctatchpad.Parrot_cont *new_continuationParrot_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.Parrot_cont *new_ret_continuationParrot_cont pointing to the current context.Parrot_coro *new_coroutineParrot_coro.PMC *new_ret_continuation_pmcRetContinuation PMC.
Uses one from the cache,
if possible; otherwise,
creates a new one.void invalidate_retc_contextSTRING *Parrot_full_sub_nameint Parrot_Context_get_infoSTRING *Parrot_Context_infostrPMC *Parrot_find_padPMC *parrot_new_closure
include/parrot/sub.h.

Initial version by Melvin on 2002/06/6.
|  |   |