Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. YAAQ Yet another academic question - overloaded or "strongly typed"?

YAAQ Yet another academic question - overloaded or "strongly typed"?

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    Overheard many years ago that "C is strongly typed language". So what's up with unspecified / unknown "standard definition " of int abs (int) overloaded by , again unknown source "standard", to float abs ( float)? Is it just "progress" AKA from plain C to C "whatever is latest derivative of it" or just plain lack of real standards ? Happy coding in 2015 Cheers Vaclav

    L 1 Reply Last reply
    0
    • V Vaclav_

      Overheard many years ago that "C is strongly typed language". So what's up with unspecified / unknown "standard definition " of int abs (int) overloaded by , again unknown source "standard", to float abs ( float)? Is it just "progress" AKA from plain C to C "whatever is latest derivative of it" or just plain lack of real standards ? Happy coding in 2015 Cheers Vaclav

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      That's not C, it's C++; see the Remarks section at http://msdn.microsoft.com/en-us/library/kw1ee768.aspx[^] and http://msdn.microsoft.com/en-us/library/18z15bk0.aspx[^].

      V 1 Reply Last reply
      0
      • L Lost User

        That's not C, it's C++; see the Remarks section at http://msdn.microsoft.com/en-us/library/kw1ee768.aspx[^] and http://msdn.microsoft.com/en-us/library/18z15bk0.aspx[^].

        V Offline
        V Offline
        Vaclav_
        wrote on last edited by
        #3

        Sorry I did not specifically say "C++". I should have said "is C++ ( and derivatives ) strongly typed " to make the question clearer. Maybe the question is just irrelevant with overloading, thus academic as I said in title. Cheers Vaclav

        L M 2 Replies Last reply
        0
        • V Vaclav_

          Sorry I did not specifically say "C++". I should have said "is C++ ( and derivatives ) strongly typed " to make the question clearer. Maybe the question is just irrelevant with overloading, thus academic as I said in title. Cheers Vaclav

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Exactly, you said "Overheard many years ago that "C is strongly typed language".", and went on to talk about overloading. I responded that it (overloading) was not C it was C++. So I apologise that my answer was not very clear.

          1 Reply Last reply
          0
          • V Vaclav_

            Sorry I did not specifically say "C++". I should have said "is C++ ( and derivatives ) strongly typed " to make the question clearer. Maybe the question is just irrelevant with overloading, thus academic as I said in title. Cheers Vaclav

            M Offline
            M Offline
            Mike Nordell
            wrote on last edited by
            #5

            I should have said "is C++ ( and derivatives ) strongly typed " No need. You just mixed concepts when including overloading - that's like comparing apples with the act of driving a car. :-) So restricting the question to C, it is indeed a strongly typed language, but in some instances not entirely strict about it. C++ is stricter. For further reading, see f.ex. this wikipedia page.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups