That's a compile-time check; not a runtime check, which was what was discussed here.
/ Henrik Grubbström (Lysator)
Previous text:
2003-01-04 18:48: Subject: Too many arguments
Now I know we are talking past each other. A very small experiment shows that main does not accept extra args:
int main() { int done;
if(!done) { done=1; main(1,({}),({}),1,1,1,1); } }
multiarg.pike:7:Too many arguments to main. multiarg.pike:7:Expected: function( : int) multiarg.pike:7:Got : function(int(1..1), array(zero), array(zero), int(1..1), int(1..1), int(1..1), int(1..1) : void | mixed)
/ Peter Bortas