vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
1.15k stars 136 forks source link

Crash in Transform f addargs(1,last) if f appears with no arguments #267

Open jodavies opened 6 years ago

jodavies commented 6 years ago

Hello,

This is not really a bug as such, but something I found and thought I should report. I would expect the following code to simply "do nothing",

#-
CFunction f;
Local test = f;
Transform f addargs(1,last);
Print +s;
.end

but rather it gives the misleading error

Illegal $ value in range while executing transform statement.

Of course one can avoid it with

Identify f = 0;

or similar, before the transform statement.

Thanks, Josh.