both too many and too few arguments

Jay Michael jmichael_ll at yahoo.com
Tue Dec 16 03:10:12 CET 2014


GNU Pascal version 20070904, based on gcc-3.4.5 (mingw special).

>gpc jsm6.pas 
jsm6.pas: In main program:
jsm6.pas:7: error: too many (>1) arguments to routine `noargproc'
jsm6.pas:5: error:  routine declaration
jsm6.pas:7: error: too few (1) arguments to function `noargproc'

     I defined a procedure with no arguments.  When I called it with two arguments, I got error messages saying both "too many" and "too few" arguments.

     What is the significance of the "1" in "too many (>1) arguments" and in "too few (1) arguments"?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jsm6.pas
Type: application/octet-stream
Size: 243 bytes
Desc: not available
URL: <http://www.g-n-u.de/pipermail/gpc/attachments/20141215/bfc5a0bb/attachment.obj>


More information about the Gpc mailing list