Re: char* pname = "Harry"



Martin Ambuhl <mambuhl@xxxxxxxxxxxxx> writes:
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.

Sorry, I misunderstood. I thought that you meant to say that
idiomatic C code is not valid C++ code. It should have been clear to
me from the context that C code is *usable* by C++ code via C++'s
interfacing mechanism.

(And perhaps you could have pointed out my error without getting quite
so personal about it.)

--
Keith Thompson (The_Other_Keith) kst-u@xxxxxxx <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
.



Relevant Pages

  • Re: char* pname = "Harry"
    ... for which there is no excuse. ... methods for linking C code written without regard to C++ arcane ...
    (comp.lang.c)
  • Re: Mass Group Spam - Suggested solutions?
    ... Many continental mysterious trusts will notably excuse the ... respondents. ... Said's engineering loads with regard to our attack after we ...
    (comp.arch.embedded)
  • Re: Israel: 2 down, 1 to go.
    ... She will donate the underground pc and remind it with regard to its ... Hardly any fundamental huge rebels will forever argue the ... desires. ... Better excuse loves now or Jim will obediently kiss them ...
    (sci.crypt)
  • Question on relative path assignments
    ... With regard to linking other Visio and assorted types of files to a document ...
    (microsoft.public.visio.general)
  • Re: /clr option
    ... I appreciate your help in this regard. ... > How do i resolve the unresolved symbol fduring linking?. ... >> together a simple repro with this behavior. ... >> Kang Su Gatlin ...
    (microsoft.public.dotnet.languages.vc)