Details
Assignee
UnassignedUnassignedReporter
Nicola MomettoNicola MomettoPatch
CodePriority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Nicola Mometto
Nicola MomettoPatch
Code
Priority
Created April 23, 2015 at 12:59 PM
Updated April 23, 2015 at 12:59 PM
Because of implementation details of how def forms are compiled, invokations in its args are evaluated using applyTo rather than directly using the invoke method. This forces IFn implementors to implement applyTo even when not necessary.
The proposed patch changes InvokeExpr.eval to use AFn.applyToHelper, so that invoke rather than applyTo is used when possible.
Example of currently failing code that will work with patch: