public class ClosureBlock extends Object implements Block
Block.Noop| Constructor and Description |
|---|
ClosureBlock(SourceLocation loc,
List<Class> parameterTypes,
List<String> parameters,
Block body,
Class<? extends CpsClosure> closureType) |
| Modifier and Type | Method and Description |
|---|---|
Next |
eval(Env e,
Continuation k)
Executes this expression, then pass the result to the given continuation when it's available.
|
public ClosureBlock(SourceLocation loc, List<Class> parameterTypes, List<String> parameters, Block body, Class<? extends CpsClosure> closureType)
public Next eval(Env e, Continuation k)
Block
To be more precise, this method does not evaluate the expression by itself synchronously.
Instead, the evaluation is done by the caller by repeatedly step executing
the resulting Next object.
Copyright © 2011–2019. All rights reserved.