Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!news2.arglkargh.de!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.c++ Subject: Re: Implicit convervsion of bool to int: why? Date: Sat, 30 Jul 2011 13:18:14 +0300 Organization: Tidorum Ltd Lines: 18 Message-ID: <99i436FcfaU1@mid.individual.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net ZDtPuKKmKso/4SErvbzXrAUDTLHwsZEFEj7S2FrFNSHor4UhvL Cancel-Lock: sha1:qhGceMQxpag+zjASqcCby4ohSoU= User-Agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100328) In-Reply-To: Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:8330 MikeP wrote: > Robert Wessel wrote: >> On Sat, 16 Jul 2011 04:29:14 -0500, "MikeP" wrote: >> >>> Why can bool types be implicitly converted to ints? ... >> There are languages which have no implicit conversions. > > The Haskell, Scheme, OCaml set, yes? For an example of a language without implicit conversions, from the same programming paradigm as C++ (imperative, procedural), take Ada. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .