Re: Segmentation Fault.... C99F
- From: Tak-Shing Chan <t.chan@xxxxxxxxxx>
- Date: Thu, 12 Apr 2007 18:05:24 +0100
On Thu, 12 Apr 2007, Richard Heathfield wrote:
Tak-Shing Chan said:
<snip>
I was demonstrating that your ``reason for avoiding //
comments'' is flawed.
No, you weren't. You were merely pointing out that on some occasions //
comments do not line-wrap. This was already known, so you have provided
no new information.
If you honestly cannot see where I am heading, I think I will give up.
I haven't a clue where you're heading. Your call.
Let me repost the bits that you have snipped:
``[...] Long lines are the culprit, not
// comments. Take any C program. Mechanically wrap them at 20
characters. I bet that the majority of them will fail to
compile, even if you use /* comments */.''
Let me expand on this a little bit:
(1) To begin with, if we set our newsreaders to be narrower
than the Usenet convention (67 characters), then we should not
copy-and-paste from a post and expect the results to be
compilable. Why? By forcing a mechanical rewrap, we risk
breaking identifiers (or string literals) in the middle. This is
particularly common with long printf lines.
(2) If original posters obey the Usenet line length
conventions, then our line lengths would match (or exceed)
theirs, so // comments would not and could not cause any
problems in the first place.
In other words, // is not the culprit.
Tak-Shing
.
- References:
- Segmentation Fault....
- From: Nomad.C@xxxxxxxxx
- Re: Segmentation Fault....
- From: Daniel Rudy
- Re: Segmentation Fault....
- From: Nomad.C@xxxxxxxxx
- Re: Segmentation Fault....
- From: Charlton Wilbur
- Re: Segmentation Fault....
- From: jacob navia
- Re: Segmentation Fault....
- From: Charlton Wilbur
- Re: Segmentation Fault....
- From: jacob navia
- Re: Segmentation Fault....
- From: Clever Monkey
- Re: Segmentation Fault....
- From: jacob navia
- Re: Segmentation Fault.... C99F
- From: Richard Heathfield
- Re: Segmentation Fault.... C99F
- From: Tak-Shing Chan
- Re: Segmentation Fault.... C99F
- From: Richard Heathfield
- Re: Segmentation Fault.... C99F
- From: Tak-Shing Chan
- Re: Segmentation Fault.... C99F
- From: Richard Heathfield
- Re: Segmentation Fault.... C99F
- From: Tak-Shing Chan
- Re: Segmentation Fault.... C99F
- From: Richard Heathfield
- Segmentation Fault....
- Prev by Date: Re: "data hiding" prototype code
- Next by Date: Re: Segmentation Fault....
- Previous by thread: Re: Segmentation Fault.... C99F
- Next by thread: Re: Segmentation Fault.... C99F
- Index(es):
Relevant Pages
|