ncsa / qdl

the QDL programming language
Other
1 stars 0 forks source link

Constructing system functions to call in Java modules fails #66

Open jjg-123 opened 2 weeks ago

jjg-123 commented 2 weeks ago

When writing a Java module, creating a system function directly, e.g.

        Polyad detokenize = new Polyad(StringEvaluator.DETOKENIZE);
        detokenize.addArgument(new ConstantNode(stem));
        detokenize.addArgument(new ConstantNode(" "));
        detokenize.evaluate(state);

will fail since the evaluator assumes that being in a module, there is an attempt to override (in this case) the detokenize function. The correct behavior is that if the function is not redefined in the module, just call the system function.