An even better example than the mapping example is a function with optional arguments, I just realized;
// return b if b is defined (was supplied by the caller), else c int foo(int c, int|void b) { return zero_type(b) ? c : b; }
Where does one find the assignment descriptions?
/ Johan Sundström (a hugging punishment!)
Previous text:
2003-01-03 02:18: Subject: Re: PLEAC
// use b if b is defined, else c // an undefined variable would be a compile time error. a= b?b:c;
This sounds like a poor translation from a foreign concept Pike lacks.
If you were thinking of the Pikeish concept of definedness, such as whether something you indexed out of a mapping actually existed there, you would write (with b = my_mapping[some_index]):
a = zero_type(b) ? c : b;
/ Johan Sundström (a hugging punishment!)