[wx-dev] Ok() and IsOk()

Vadim Zeitlin vadim at wxwindows.org
Wed Oct 4 03:44:23 PDT 2006


On Wed, 04 Oct 2006 07:42:04 +0100 Julian Smart <julian at anthemion.co.uk> wrote:

JS> I would welcome consistency, but not the wxDEPRECATE keyword on 
JS> functions that are used potentially thousands of time in an application 
JS> - there would be huge numbers of warnings for a cosmetic change.

 I agree.

JS> In fact perhaps Ok/IsOK should be made interchangeable in all classes,
JS> rather than deprecating one or the other.

 I'd prefer to still standardize on one (my personal preference is IsOk()
as I find it more readable and IMO 2 extra characters to type is not a big
deal) so I'd rather add IsOk() to all classes which have Ok() currently but
not add Ok() to the classes with IsOk(). I would not use wxDEPRECATED()
with Ok() though because I agree with Julian that the aggravation caused by
this change doesn't come near to compensating the consistency gain from it.

 Regards,
VZ





More information about the wx-dev mailing list