[wx-dev] what should IsEnabled() really return?

Aggro aggro at pp.inet.fi
Sat Mar 17 09:33:20 PDT 2007


Vadim Zeitlin wrote:

>  Well, if the assumptions are wrong, the conclusions are irrelevant and
> this one is clearly wrong. You will always find IsEnabled() before
> IsSomethingElseEnabled() simply because it's so much more natural.

No, We were not searching for IsEnabled() in that example. That was a 
general example with functions X, Y and Z, which could be anything 
(which is why we don't know the actual order from them, because X could 
be first in the alphabets or the last. So it is safe to make assumption 
that search order is random). The point of that example was only to show 
that the more functions we have, the harder it is to find the correct 
one. So decision about having one or two functions does not affect only 
those two functions, it affects all functions in that class and all 
classes inherited from that class.

This is one thing which is not an opinion, but a fact. In can be proved 
by math, or by a computer programs or even by simple tests with humans.

This is all I got about this subject.




More information about the wx-dev mailing list