Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming.threads > #4286 > unrolled thread

More about the deficiency of C++

Started bySky89 <Sky89@sky68.com>
First post2018-05-18 17:25 -0400
Last post2018-05-18 17:25 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.programming.threads


Contents

  More about the deficiency of C++ Sky89 <Sky89@sky68.com> - 2018-05-18 17:25 -0400

#4286 — More about the deficiency of C++

FromSky89 <Sky89@sky68.com>
Date2018-05-18 17:25 -0400
SubjectMore about the deficiency of C++
Message-ID<pdngbg$jlm$3@dont-email.me>
Hello..

More about the deficiency of C++

If you want to assign a negative signed variable to a positive unsigned 
variable, this is possible in C++ and C.

And this is not possible in Delphi and FreePascal (with range checking 
enabled) and it is not possible with ADA because they are strongly typed.

Also:

I have just tested C++ , and when i instantiate an object and i want to
assign the object to a variable, the C++ is weakly typed , so it can
assign a type of an object to another type of a variable, and this
is a big problem ! C++ has inherited this deficiency of being
"too" weakly typed from C, Delphi and FreePascal that i work with are 
more strongly typed and they will not allow this problem to happen, ADA 
too is strongly typed and it will not allow this problem to happen.


So from the above reasons i think that C++ and C are "too" permissive
and "too" weakly typed, they are more unsafe than ADA or Delphi or 
FreePascal.




Thank you,
Amine Moulay Ramdane.

[toc] | [standalone]


Back to top | Article view | comp.programming.threads


csiph-web