Safe Language
-
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
-
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
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...
-
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...
Thanks for the response. -Ken Maz
-
Thanks for the response. -Ken Maz
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!
-
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
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