Re: Casts
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Sun, 24 Jun 2007 20:58:29 +0100
On Sun, 24 Jun 2007 00:15:32 +0200, in comp.lang.c , jacob navia
<jacob@xxxxxxxxxxxxxxxx> wrote:
Temps are cheap, and easy to read.
If the declaration of the temp is 76 lines before
you have to look it up, then come back to see why you use
a temporary variable,
Well, ok - but in C99 there's no reason to do this - declare when
required.
int c = *((char *)p);
is immediately clear what you are doing.
You are joking, surely?
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- Follow-Ups:
- Re: Casts
- From: Richard Tobin
- Re: Casts
- References:
- Prev by Date: Re: xmalloc
- Next by Date: Re: ctime \n rationale
- Previous by thread: Re: Casts
- Next by thread: Re: Casts
- Index(es):