kawa.standard
Class callcc
- Named
Implement the Scheme standard function "call-with-current-continuation".
This is a restricted version, that only works for escape-like applications.
apply, apply, apply0, apply1, apply2, apply3, apply4, applyN, check0, check1, check2, check3, check4, checkArgCount, checkN, getName, getProperty, getSetter, getSymbol, match0, match1, match2, match3, match4, matchN, maxArgs, minArgs, name, numArgs, removeProperty, set0, set1, setN, setName, setProperty, setProperty, setSetter, setSymbol, toString |
apply
public void apply(CallContext ctx)
throws ThrowableCall this Procedure using the explicit-CallContext-convention.
The input arguments are (by default) in stack.args;
the result is written to ctx.consumer.
- apply in interface Procedure
match1
public int match1(Object proc,
CallContext ctx)Pass one argument.
- match1 in interface Procedure
- non-negative if the match succeeded, else negative.
numArgs
public int numArgs()
Return minArgs()|(maxArgs<<12).
- numArgs in interface Procedure