Omit default values in function calls

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Omit default values in function calls

Post by uwekel »

Hi,

i would appreciate the possibility to omit or skip default values on function calls.

Example:

Code: Select all

Procedure Test(a, b=1, c=1)
  ;any code here
EndProcedure

Test(2, ,3)
The second argument b has been omited and the default value 1 will be used.

Best regards
Uwe
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
User avatar
STARGÅTE
Addict
Addict
Posts: 2227
Joined: Thu Jan 10, 2008 1:30 pm
Location: Germany, Glienicke
Contact:

Re: Omit default values in function calls

Post by STARGÅTE »

PB 6.01 ― Win 10, 21H2 ― Ryzen 9 3900X, 32 GB ― NVIDIA GeForce RTX 3080 ― Vivaldi 6.0 ― www.unionbytes.de
Lizard - Script language for symbolic calculations and moreTypeface - Sprite-based font include/module
uwekel
Enthusiast
Enthusiast
Posts: 740
Joined: Sat Dec 03, 2011 5:54 pm
Location: Oldenburg (Germany)

Re: Omit default values in function calls

Post by uwekel »

Thx STARGÅTE, i searched before posting this, but haven't found anything.
PB 5.70 LTS (x64) - Debian Testing, Gnome 3.30.2
Post Reply