Hi!
In ADA and Vax Pascal there is a way of specifying default parameters:
procedure a (x : integer := 10; y : string := 'abcdefg');
and to call a with specific argument:
Var var1 : integer; var2 : string;
Begin var1 := 5; var2 := 'hello';
a ( x := var1);
a;
a ( y := var2);
a (var1, var2);
2 questions:
1. is there any way of doing so in GPC 2. if answer to #1 is "no" is it possible to include it in todo list
Thank you in advance,
Nick
Nick Ioffe wrote:
In ADA and Vax Pascal there is a way of specifying default parameters:
- is there any way of doing so in GPC
Currently not.
- if answer to #1 is "no" is it possible to include it in todo list
It's already there (under `Misc'), but with no high priority as far as I'm concerned.
Frank