On that note, it'd be nice to have named parameters:
void foo(string firstname="", string initial="", string lastname="");
and then using syntax such as: foo(firstname = "David"; lastname = "Hedbor")
get the method called like this =>
foo("David", "", "Hedbor")
That's probably kind of tricky to implement however.
/ David Hedbor
Previous text:
2003-03-06 13:15: Subject: negative indices in array ranges
Or int foo(int zot=17) { }
It's sort of odd to have '|void' there as well, since the default value indicates that the parameter can be left out, and 17 is not void.
/ Per Hedbor ()