multiple arguments, variable arguments, default values
|
04-17-2021, 01:11 PM
Post: #1
|
|||
|
|||
multiple arguments, variable arguments, default values
From the recent public beta announcement,
(04-14-2021 06:32 AM)Tim Wessman Wrote: [*]Able to have multiple functions of same name with different number of arguments (no default arguments though) I thought someone might benefit from seeing the syntax for this. And while technically correct that PPL does not support default arguments, you can still get the equivalent of default arguments as shown below. Here's an example of multiple arguments using the same function name defined with different number of arguments. Code:
And here's a simple example of the variable argument syntax. Code:
IMHO, these are nice additions to PPL. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
multiple arguments, variable arguments, default values - Wes Loewer - 04-17-2021 01:11 PM
RE: multiple arguments, variable arguments, default values - compsystems - 04-17-2021, 04:32 PM
RE: multiple arguments, variable arguments, default values - Wes Loewer - 04-17-2021, 05:59 PM
RE: multiple arguments, variable arguments, default values - cyrille de brébisson - 04-19-2021, 09:50 AM
RE: multiple arguments, variable arguments, default values - compsystems - 04-19-2021, 08:39 PM
|
User(s) browsing this thread: 1 Guest(s)