Re: Help with understanding this please



Keith Thompson <kst-u@xxxxxxx> writes:

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.

I'm not sure if you are trying to be amusing or typically pedantic and
elusive.

If you think

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

is a good answer to a newbies question then you need to take a break.


.



Relevant Pages

  • 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: which tutorial to use?
    ... any recomendations? ... the course is for ANSI C, ... UNIX info is useless. ... Also the C Faq by this group (http://www.c- ...
    (comp.lang.c)
  • New Annotations
    ... ANSI C standard is useless, perhaps a free document much like it could ...
    (comp.lang.c)
  • Re: Help with understanding this please
    ... Yeah because C++ is wrong and so was pre Ansi C. ... malloc). ... Pre-ANSI C *was* wrong, ... Heathfield's reply was less than useless. ...
    (comp.lang.c)
  • Re: Help with understanding this please
    ... Pre-ANSI C *was* wrong, ... Heathfield's reply was less than useless. ... is a good answer to a newbies question then you need to take a break. ... malloc(). ...
    (comp.lang.c)