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


Groups > comp.programming.threads > #4286

More about the deficiency of C++

From Sky89 <Sky89@sky68.com>
Newsgroups comp.programming.threads
Subject More about the deficiency of C++
Date 2018-05-18 17:25 -0400
Organization A noiseless patient Spider
Message-ID <pdngbg$jlm$3@dont-email.me> (permalink)

Show all headers | View raw


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.

Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web