[Gambas-user] VariadicFunction to understand extra arguments

Bruce Steers bsteers4 at gmail.com
Wed Dec 16 18:50:28 CET 2020


Wait , strike me down centurion lol.

I have been mistaken here i think.
Very mistaken and i apologize.
I had not realized the Param class, this changes everything.
(on the wiki the part about Param was displayed in the previous section
about the "Optional" keyword so i had missed it)

Nice example thank you.
I'll try to make the wiki more descriptive...

BruceS


On Wed, 16 Dec 2020 at 17:34, Bruce Steers <bsteers4 at gmail.com> wrote:

> You will find it confusing of you think the "..." keyword is a "variadic
> function" by standard definitions.
>
> It is not, it is just a keyword to pass arguments through one function to
> another. The "..." object/keyword cannot be accessed like a variadic one
> can.
>
> It will not work the same way a typical "variadic function" does.
>
> I thought the wiki info quite explanatory.
>
> BruceS
>
> On Wed, 16 Dec 2020, 17:04 Gianluigi, <bagonergi at gmail.com> wrote:
>
>> I have added to the Farm an example (VariadicFunction) which I hope will
>> be useful in understanding the extra arguments.
>> Obviously as long as I have understood this well. ☺
>> I communicate this because in the wiki (
>> http://gambaswiki.org/wiki/lang/methoddecl) the explanation of the extra
>> arguments seems very confusing. 😞
>> I ask an English-speaking colleague if he can intervene.
>>
>> Thank you
>>
>> Gianluigi
>>
>> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201216/b5e48291/attachment.htm>


More information about the User mailing list