G
Gomaw Beoyr
Have you investigated nullable types in 2.0 yet?
Yes, you can use nullable types, but it then becomes really ugly
(I simplify here to one in and two out):
void F(double x, ref double? a, ref double? b) {
if (a != null) ...
if (b != null) ...
}
A caller that needs a but not b would have to do like this:
double? a;
double? b;
...
a = 0.0; // To make sure it's not null!
F(x, ref a, ref b);
And that sucks big time.
/Gomaw