Using 'mod' as a function parameter in Spad

3 views
Skip to first unread message

Grégory Vanuxem

unread,
Sep 23, 2025, 10:35:21 PMSep 23
to fricas...@googlegroups.com
Hello,

A quick note, using 'mod' as a function parameter in Spad leads in my settings to:

******** Spad syntax error detected ********
Expected: |)|

Maybe this can be improved.

- Greg

PS / I know 'mod' can be interpreted as an operation.




Waldek Hebisch

unread,
Sep 25, 2025, 6:45:01 AMSep 25
to fricas...@googlegroups.com
mod is an operator. To use it as a normal operator prepend underscore.
Concerning error message, this looks like price for simplicity of
our parser (it is hard to say more without an actual testcase).

--
Waldek Hebisch
Reply all
Reply to author
Forward
0 new messages