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. Safe Language

Safe Language

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
5 Posts 4 Posters 0 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.
  • K Offline
    K Offline
    Ken Mazaika
    wrote on last edited by
    #1

    In one of my classes (on programming in Scheme) my professor said that C++ is an "unsafe language". Could anyone help explain what that really means? I tried googling it, without much luck. Thanks. -Ken Maz

    R D 2 Replies Last reply
    0
    • K Ken Mazaika

      In one of my classes (on programming in Scheme) my professor said that C++ is an "unsafe language". Could anyone help explain what that really means? I tried googling it, without much luck. Thanks. -Ken Maz

      R Offline
      R Offline
      Rage_bla
      wrote on last edited by
      #2

      Try googling unsafe for C# and you'll se what is considered to be unsafe. Some of the "unsafe" things are: -variables don't have to be initialised before use -you can cast pretty much anything to anything else -pointers are generaly unsafe -normal arrays are not bounds checked and can owerflow -a milion more things...

      K 1 Reply Last reply
      0
      • R Rage_bla

        Try googling unsafe for C# and you'll se what is considered to be unsafe. Some of the "unsafe" things are: -variables don't have to be initialised before use -you can cast pretty much anything to anything else -pointers are generaly unsafe -normal arrays are not bounds checked and can owerflow -a milion more things...

        K Offline
        K Offline
        Ken Mazaika
        wrote on last edited by
        #3

        Thanks for the response. -Ken Maz

        B 1 Reply Last reply
        0
        • K Ken Mazaika

          Thanks for the response. -Ken Maz

          B Offline
          B Offline
          bugDanny
          wrote on last edited by
          #4

          Yeah, basically, C++ allows you to do a lot of things that could potentially be dangerous, like accessing out of the bounds of an array, and leaves it up to the programmer to make sure the program is doing what he wants it to do. Danny The stupidity of others amazes me!

          1 Reply Last reply
          0
          • K Ken Mazaika

            In one of my classes (on programming in Scheme) my professor said that C++ is an "unsafe language". Could anyone help explain what that really means? I tried googling it, without much luck. Thanks. -Ken Maz

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            Ken Mazaika wrote:

            In one of my classes (on programming in Scheme) my professor said that C++ is an "unsafe language".

            Make sure you fully understand in what context he was talking. Otherwise, you could treat that as a blanket statement and come away with a completely misguided view of a very good language.


            "Take only what you need and leave the land as you found it." - Native American Proverb

            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