PeyloW
Joined: 12 Oct 2005 Posts: 14 Location: Sweden
|
Posted: Sun Nov 06, 2005 6:44 am Post subject: Update 2005-11-06 |
|
|
Completed the centralised argument handling. All predefined functions now use evalArgs to validate arguments and evaluate them as needed. EvalArgs take a regexp-lookalike format string with arguments, the original list of unevaluated arguments and optionally a dynamic array of integers to fill with counts if using variable count of arguments. The return value is the evaluated arguments as a new list, or an exception if something goes wrong.
Some better error-reporting would be nice, but the code in evalpredefs.d should go down by half. And is much more future proof. |
|