Re: Help with understanding this please



Richard<rgrdev@xxxxxxxxx> writes:
lawrence.jones@xxxxxxxxxxx writes:
Richard <rgrdev@xxxxxxxxx> wrote [re. casting the return value of malloc]:
Richard Heathfield <rjh@xxxxxxxxxxxxxxx> writes:

Why on earth would I do that? What good could it possibly do?

Yeah because C++ is wrong and so was pre Ansi C.

C++ isn't wrong, it's different (C++ programs should use new rather than
malloc). Pre-ANSI C *was* wrong, that's why ANSI changed it.

My point seems to have eluded you. And that is it is NOT obvious. And
Heathfield's reply was less than useless.

Let me draw your attention to the original poster's response to
RH's "less than useless" reply:

Thanks as always...and thanks for the humor or humour...which I know
is lost on some, but is immensely appreciated by myself.

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
.



Relevant Pages

  • Re: Help with understanding this please
    ... malloc). ... Pre-ANSI C *was* wrong, ... Heathfield's reply was less than useless. ...
    (comp.lang.c)
  • Re: Help with understanding this please
    ... Why on earth would I do that? ... Yeah because C++ is wrong and so was pre Ansi C. ... malloc). ... Pre-ANSI C *was* wrong, ...
    (comp.lang.c)
  • Re: how to code to avoid SQL insertion attacks
    ... >> would yield UNKNOWN not NULL, ... Can you indicate where they are defined and in which ANSI ... I know Martin very well (he dedicated his first book, "Understanding SQL", to me.) ... I'd be disappointed if PostgreSQL supported it, because it is useless or at best ...
    (comp.lang.java.programmer)
  • Re: C portability is a myth
    ... >> mallocis ANSI. ... Lets remember, this is the manpage defining malloc(), not the header. ... IME most newbies have absolutely no clue that there even *are* standard ...
    (comp.lang.c)
  • Re: C portability is a myth
    ... >>is a standard C header. ... > malloc() is ANSI. ... it says that the mallocfunction is ANSI -- but if I didn't ...
    (comp.lang.c)