Overview
| Artifact ID: | 5df90f4a2855463dd9706090936ebc5078210029e291edf62f9710a2ebb9ad97 |
|---|---|
| Ticket: | 1e66ba3d490260713811edff4722fc1bfa1b4547
expr cannot call math functions named eq/ne/in/ni or starting with them (in_range, eq_zero, ...) |
| User & Date: | serhiy.storchaka on 2026-10-17 12:49:29 |
Changes
- icomment:
Proposed fix in branch [/timeline?r=expr-operator-prefixed-funcs|expr-operator-prefixed-funcs]: in <tt>ParseExpr()</tt>, a word operator where an operand is expected and followed by <tt>(</tt> is parsed as a function name, so <tt>in_range(5, 1, 10)</tt> and <tt>eq(1)</tt> work. Uses as operators (<tt>$a eq1</tt>, <tt>1eq1</tt>, <tt>$a ne(1)</tt>) are unchanged. Tests expr-bug-1e66ba3d49-1 and -2.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"