I am using the JCL TCompiledEvaluator (unit JclExprEval) but am having great difficulty trying to add a user function. I want to add a function of type TUnary32Func (1 parameter) but I cannot figure this out. Unfortunately, I cannot find any JCL documentation on this and the Google Ai assistant presents a number of conflicting and possibly bogus solutions.
The procedure call looks like this but I don’t know how to go any further successfully.
public procedure AddFunc(const AName: string; AFunc: TUnary32Func); overload;
Is there a working example anywhere?
Thanks, Gerard Hook