Removal of 15-parameter limit

Started by Rincewind, May 17, 2008, 10:14:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rincewind

There seems to be a limit of 15 parameters for processes and functions. I get the following error when I use more parameters:

QuoteToo many parameters in a definition (<name of last parameter>)

It would be nice if this limitation could be removed instead of having to circumvent it.  :-\ Thanks!
Getting things done is vital.

SplinterGU

16 parameters are the limit... more of 15 parameters is a horror, maybe you must use a struct pointer...
Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Rincewind

Quote from: SplinterGU on May 17, 2008, 01:52:10 PM
16 parameters are the limit...more of 15 parameters is a horror, maybe you must use a struct pointer...

The limit is 15 as far as I can see. Whether more than 15 parameters are used should really be up to the user, no? In my case it certainly is not a horror - I need 16 parameters, so that's one more than the max, and using a struct pointer or a user defined type pointer for this extra parameter (and the parameter the pointer will replace) is simply dirty and ugly.

Couldn't you remove the limit (why would there be a limit in the first place?) Or if that's too hard code-wise, maybe you could increase the limit to something very high?
Getting things done is vital.

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

Rincewind

Getting things done is vital.

MythomizeR

#5
By the way, I wonder if it's possible in Bennu to create functions/process with a variable number of parameters (like in C with '...').

I believe no, but I ask it...

SplinterGU

Download Lastest BennuGD Release: http://www.bennugd.org/node/2

MythomizeR