Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2011-10

maximum number of params to function? and misleading error>

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Martin

Is there a maximum number of params that a function can take?

Before the compiler gives the error:
WatchesPrg.pas(274,3) Error: Wrong number of parameters specified for call to "FooFunc"

Despite, they are the same number? that is, I f I comment out one param on both sides (calling, and declaration), it compiles fine?

And no, I have no idea, how many params I already have. It' distributed over several include files.

I use it for testing, by passing all kind of different types as argument. Could easily be 1000 or more by now

Reply by email