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


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

About implicit type conversions..

Started byHorizon68 <horizon@horizon.com>
First post2019-01-28 10:23 -0800
Last post2019-01-28 10:23 -0800
Articles 1 — 1 participant

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


Contents

  About implicit type conversions.. Horizon68 <horizon@horizon.com> - 2019-01-28 10:23 -0800

#4910 — About implicit type conversions..

FromHorizon68 <horizon@horizon.com>
Date2019-01-28 10:23 -0800
SubjectAbout implicit type conversions..
Message-ID<q2nhbf$mio$2@dont-email.me>
Hello,


About implicit type conversions..

The more implicit type conversions a language supports the weaker its 
type system is said to be. C++ supports more implicit conversions than 
Ada or Delphi. Implicit conversions allow the compiler to silently 
change types, especially in parameters to yet another function call - 
for example automatically converting an int into some other object type. 
If you accidentally pass an int into that parameter the compiler will 
"helpfully" silently create the temporary for you, leaving you perplexed 
when things don't work right. Sure we can all say "oh, I'll never make 
that mistake", but it only takes one time debugging for hours before one 
starts thinking maybe having the compiler tell you about those 
conversions is a good idea.


Thank you,
Amine Mopulay Ramdane.

[toc] | [standalone]


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


csiph-web