Re: Is necessary to switch to C++ or some object-oriented language?



On Mar 23, 3:09 am, r...@xxxxxxxxxxxxxxxxxxxxxx (Richard Bos) wrote:
"J. J. Farrell" <j...@xxxxxxxxxx> wrote:





On Mar 22, 11:48 am, "user923005" <dcor...@xxxxxxxxx> wrote:
On Mar 21, 7:16 pm, "J. J. Farrell" <j...@xxxxxxxxxx> wrote:

On Mar 21, 2:14 pm, "user923005" <dcor...@xxxxxxxxx> wrote:

I suppose it hinges on what you consider "minor", but please specify
why you consider this claim to be false. It's very rare for programs
to need to call main() recursively, or to care about the type of a
charater constant, for example. The need to cast void * to other
object pointer types is slightly more intrusive, but I'd still
consider it minor. Which are the non-minor exceptions?

Take this tarball:http://wwwmaster.postgresql.org/download/mirrors-ftp?file=%2Fsource%2...
Which is the PostgreSQL database (written in the C language).
Rename all of the .c files to .cpp and try to compile it.
Basically none of the files will compile.

I don't see how that's relevant to the question. If the minor
exceptions are widely used, there'll obviously be problems compiling.

If they're widely used, I wouldn't call them minor. Some people would
say that the differences between a monkey's genome and a human's are
minor; but the differences between the resulting money and human
definitely aren't.

You're confusing the differences with their impacts. The exceptions
are few and minor, but that shouldn't be taken to imply that they have
little impact. The difference between driving on the left and driving
on the right is minor; the effect of ignoring the difference is not.

.



Relevant Pages

  • Re: Is necessary to switch to C++ or some object-oriented language?
    ... It's very rare for programs ... to need to call mainrecursively, or to care about the type of a ... Which are the non-minor exceptions? ... Rename all of the .c files to .cpp and try to compile it. ...
    (comp.lang.c)
  • Re: How do I install this missing library?
    ... How does that answer the question "What are you trying to compile? ... >> I even TOLD you what to google for! ... You don't care WHAT the ... Your package manager will tell you all you need to know. ...
    (comp.os.linux.misc)
  • Re: The origins of CL conditions system
    ... that it may be good to let the user steer the behavior of the program. ... C++ exceptions took, to try and reconstruct what might've been going ... making compiled code and interpreted code work way ... trying to lexically compile your web server and client together so you ...
    (comp.lang.lisp)
  • Re: Agent 3.0 Woof
    ... Record companies spend piles of money on producing 'monster' hits. ... few exceptions, the only way you can get monster hits is by selling a ... Classical enthusiasts care about this because slow-and-steady earners ...
    (rec.music.classical.recordings)
  • Re: Is necessary to switch to C++ or some object-oriented language?
    ... was the main reason for C++'s initial success. ... C is not a subset of C++ with minor exceptions. ... Rename all of the .c files to .cpp and try to compile it. ... The changes from C to C++ are more drastic than from Fortran IV to ...
    (comp.lang.c)