CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Why not ++C

  1. #1
    Join Date
    Aug 2005
    Location
    southampton, UK
    Posts
    1,320

    Why not ++C

    We all know preincrement is usually a better option then postincrement, the latter (depending on what type) creating temporary objects.

    So why is our beloved language not called ++C?


  2. #2
    Join Date
    Jan 2004
    Location
    Düsseldorf, Germany
    Posts
    2,401

    Re: Why not ++C

    The language returned by C++ is C, and the first C++ compilers were pre-compilers generating C code.

  3. #3
    Join Date
    Aug 2007
    Posts
    78

    Re: Why not ++C

    Stroustrup does recognize this:
    Quote Originally Posted by Bjarne Stroustrup in The C++ programming language 3rd edition
    Connoisseurs of the C semantics find C++ inferior to ++C.
    something else i read somewhere:
    it's C++ rather than ++C because ++C wouldn't return C before the increment. Backwards compatibility would be lost

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)