From kde-devel Sun May 29 14:02:01 2005 From: Richard Dale Date: Sun, 29 May 2005 14:02:01 +0000 To: kde-devel Subject: Re: Use true/false or TRUE/FALSE in KDE C++ programs? Message-Id: <200505291602.01175.Richard_Dale () tipitina ! demon ! co ! uk> X-MARC-Message: https://marc.info/?l=kde-devel&m=111737912022528 On Sunday 29 May 2005 16:48, André Wöbbeking wrote: > On Sunday 29 May 2005 15:36, Richard Dale wrote: > > I hate code which type puns ints into booleans such as: > > > > if !strcmp("mything", "myotherthing') { > > ..other difficult to read crap code > > } > > this is a bad example as strcmp() returns a tristate: less, equal or > greater but I know what you mean. Well, it's a good example because it's so bad.. :) -- Richard >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<