Re: Pango Performance (was: Re: --gtk-unbuffered)
- From: Mark Mielke <mark mark mielke cc>
- To: Oskar Liljeblad <osk hem passagen se>
- Cc: gtk-devel-list gnome org
- Subject: Re: Pango Performance (was: Re: --gtk-unbuffered)
- Date: Fri, 2 Mar 2001 04:29:01 -0500
On Fri, Mar 02, 2001 at 08:12:20AM +0100, Oskar Liljeblad wrote:
> On Thursday, March 01, 2001 at 15:53, jrb redhat com wrote:
> > > Just curious: Whats the rationale for this "strange way to code"?
> > It catches the '=' vs '==' errors. For instance:
> In my experience, you don't make this mistake often enough for
> it to be a problem. At least not if you're experienced with C...
> I thought the main point in good code was readability, not
> safeness...
Not to mention the fact that if you were smart enough to catch yourself
putting "1 == has_glyph" instead of "has_glyph == 1", you likely aren't
forgetting to use "==" (instead of "=").
As long as the extra braces aren't used, GCC catches this. (I think
somebody else pointed this out as well)
-Wall is your friend.
mark
--
mark mielke cc/markm ncf ca/markm nortelnetworks com __________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder
|\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ |
| | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada
One ring to rule them all, one ring to find them, one ring to bring them all
and in the darkness bind them...
http://mark.mielke.cc/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]