Skip to content
Snippets Groups Projects
Commit 245a888e authored by Markus Alexander Kuppe's avatar Markus Alexander Kuppe
Browse files

Allow EvaluatingValue overwrites to have zero arity.

[Feature][TLC]
parent c796811b
No related branches found
No related tags found
No related merge requests found
...@@ -1640,6 +1640,9 @@ public abstract class Tool ...@@ -1640,6 +1640,9 @@ public abstract class Tool
if (alen == 0) { if (alen == 0) {
if (val instanceof MethodValue) { if (val instanceof MethodValue) {
res = ((MethodValue)val).apply(EmptyArgs, EvalControl.Clear); res = ((MethodValue)val).apply(EmptyArgs, EvalControl.Clear);
} else if (val instanceof EvaluatingValue) {
// Allow EvaluatingValue overwrites to have zero arity.
res = ((EvaluatingValue) val).eval(this, args, c, s0, s1, control, cm);
} }
} }
else if (val instanceof Evaluator) { else if (val instanceof Evaluator) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment