Re: char* pname = "Harry"



Keith Thompson wrote:
Martin Ambuhl <mambuhl@xxxxxxxxxxxxx> writes:

peter.koch.larsen@xxxxxxxxx wrote:

[...]

Or the code should be usable with both C and C++.

Continuing with your off-topic statement, for which there is no excuse.
Idiomatic C Code is "usable with both C and C++." C++ has defined
methods for linking C code written without regard to C++ arcane
requirements, so there is never a reason to pervert the normal C idiom
to "be usable with both C and C++." I thought we lost the trolls that
kept beating this horse.


I think you dropped a "not", i.e.,

Idiomatic C Code is *not* "usable with both C and C++."

I did not drop a "not". For the C++ mechanism for linking to pure idiomatic C, go to the correct newsgroup, <news:comp.lang.c++>. Why in the world you thought I dropped a "not" is between you and your God.

.



Relevant Pages

  • Re: using "private" parameters as static storage?
    ... declare, without evidence or even reason, that he is wrong. ... given any reason for avoiding the idiom that doesn't boil down to "I ... Mistakes by the caller. ... statics. ...
    (comp.lang.python)
  • Re: OO Style with Ada Containers
    ... Scanner must be declared unconstrained. ... but that's not the reason I did it. ... indefinite" idiom, to force the object to be initialized explicitly, using one ...
    (comp.lang.ada)
  • Re: about functions question
    ... There's no reason to "protect" your main code in a small ... script. ... I actually have at least one: it allow me to execute all the ... applications of that idiom. ...
    (comp.lang.python)
  • Re: How to overide "for line in file:"
    ... >reason for the heavy duty class option, ... with the newer idiom used both "in and out" -- that is, ... Another poster has suggested that I subclass file and redefine ...
    (comp.lang.python)
  • Re: Perverting the course of justice?
    ... The reason why I worded my reply as I did was to be able to withdraw my ... to pervert the course of justice is that it is a civil claim, ... perverting the course of justice offences can only arise out of ...
    (uk.legal)