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 ()
Previous text:
2003-03-06 13:12: Subject: negative indices in array ranges
Yes, but it feels illogical. The logical would be that level=0 should just return the value without copying, in my opinion.
I've never really liked that "zero" is the default value to any function. Allowing a syntax for default values would be much nicer, for instance
int foo(int|void zot=17) { }
where zot=17 if not given.
/ Mirar