Re: Problem in Strdup()
- From: "Mark B" <sober@xxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 16:33:42 GMT
"pete" <pfiland@xxxxxxxxxxxxxx> wrote in message
news:431445A5.20A@xxxxxxxxxxxxxxxxx
> Mark B wrote:
>>
>> "pete" <pfiland@xxxxxxxxxxxxxx> wrote in message
>
>> > I prefer to separate declarations from statements
>> > with a blank line in compound statements
>> > because it's a common convention.
>>
>> Yet you liked Keith's code which omitted it? :-)
>
> Yes.
> I didn't say it was perfect.
>
>> In general I also tend to seperate my declarations from the first
>> statement with a blank line, but for no other reason than for
>> code aesthetics (yes, I think it looks nice).
>>
>> But: if I'm writing a 2 line function which consists of:
>> 1) a function call to initialize a variable in its declaration
>> 2) a return statement
>>
>> I consider 1 to be a statement
>> which no longer requires
>> a blank line to seperating it from the only other statement
>> in the function... call me silly :-)
>
> Then you are wrong.
> Declarations and definitions and are not statements.
Nor did I mean to claim that it actually was a statement...
I was implying that I would treat that particular declaration as if it were
a statement.
In retrospect, I should have left the last part of the post off completely
as I'd already
(appropriately) stated that for me personally I separate declarations from
statements
for code aesthetics, and no other reason. When it looks better with a blank
line, it
gets a blank line...
Can I assume (based on the fact that you snipped about 90% of my previous
post)
that you agreed with everything else I had written?
Mark
.
- References:
- Problem in Strdup()
- From: priya
- Re: Problem in Strdup()
- From: manoj1978
- Re: Problem in Strdup()
- From: James Daughtry
- Re: Problem in Strdup()
- From: CBFalconer
- Re: Problem in Strdup()
- From: Gary E. Ansok
- Re: Problem in Strdup()
- From: Keith Thompson
- Re: Problem in Strdup()
- From: Tim Rentsch
- Re: Problem in Strdup()
- From: pete
- Re: Problem in Strdup()
- From: Tim Rentsch
- Re: Problem in Strdup()
- From: pete
- Re: Problem in Strdup()
- From: Mark B
- Re: Problem in Strdup()
- From: pete
- Re: Problem in Strdup()
- From: Mark B
- Re: Problem in Strdup()
- From: pete
- Problem in Strdup()
- Prev by Date: Why C/C++ errors are SO obscure/devious??
- Next by Date: Re: Function pointer prototype interpretation
- Previous by thread: Re: Problem in Strdup()
- Next by thread: Re: Problem in Strdup()
- Index(es):
Relevant Pages
|