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


Groups > comp.programming.threads > #4910

About implicit type conversions..

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Horizon68 <horizon@horizon.com>
Newsgroups comp.programming.threads
Subject About implicit type conversions..
Date Mon, 28 Jan 2019 10:23:43 -0800
Organization A noiseless patient Spider
Lines 20
Message-ID <q2nhbf$mio$2@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Mon, 28 Jan 2019 18:23:43 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="3d2757a2c90f5ccbd147ff272b007ede"; logging-data="23128"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19dS9AP1odjjGtg+cxncMluJXVqiAMYrig="
User-Agent Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
Cancel-Lock sha1:Wui465fSMdM2KgqWEcOLSE8PVSg=
Content-Language en-US
X-Mozilla-News-Host news://news.eternal-september.org:119
Xref csiph.com comp.programming.threads:4910

Show key headers only | View raw


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.

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


Thread

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

csiph-web