Re: Flexible arrays - v confused
- From: websnarf@xxxxxxxxx
- Date: 16 Feb 2006 20:49:11 -0800
Keith Thompson wrote:
websnarf@xxxxxxxxx writes:
Keith Thompson wrote:[...]
Why do you uselessly cast the result of malloc()?
Because I like to use automatic error detection tools when I program,
and that includes using a C++ compiler (which has stricter type
checking). It means I have to conceed to things like the above in
order to gain the benefit of stronger type checking elsewhere in my
programs.
So if you take the opposite point of view, would it be fair to say that
you avoid things like Lint and ignore warning messages coming from your
compiler? Or are you saying that anything superfluous, like comments
and whitespace, should be eradicated from code?
Yes, absolutely, because you're always right and anyone who disagrees
with you must be a complete idiot. Thank you for bringing this to my
attention.
You intentionally instigated this. You used the language "uselessly"
and your canned argument against this cast is well known to me, and you
know that. So you respond with this question with the intention of
laying this pathetic trap. But, if you've ever bothered to read my
posts, you've known my counter argument before this post.
My reducto ad absurdum in the second paragraph is meant to address the
position "if you take the opposite point of view". If you understood
what I was saying rather than taking an antagonistic-only stance you
would have realized that what I was saying is that the problem is that
you have not clarified the basis for your point of view, and unless its
insane the ball is in your court to explain why you want to remove this
"useless" cast.
--
Paul Hsieh
http://www.pobox.com/~qed/
http://bstring.sf.net/
.
- References:
- Flexible arrays - v confused
- From: mechanicfem
- Re: Flexible arrays - v confused
- From: Chris Torek
- Re: Flexible arrays - v confused
- From: websnarf
- Re: Flexible arrays - v confused
- From: Keith Thompson
- Re: Flexible arrays - v confused
- From: websnarf
- Re: Flexible arrays - v confused
- From: Keith Thompson
- Flexible arrays - v confused
- Prev by Date: Re: Novell Programming Language
- Next by Date: Re: How to tokenize string without using strtok
- Previous by thread: Re: Flexible arrays - v confused
- Next by thread: Re: Flexible arrays - v confused
- Index(es):
Relevant Pages
|
|