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


Groups > comp.lang.c++ > #8330

Re: Implicit convervsion of bool to int: why?

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 <niklas.holsti@tidorum.invalid>
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> (permalink)
References <ivrll6$jh0$1@dont-email.me> <ael4275glbj0abvp20jbrm9qivttojbnv8@4ax.com> <ivtqc2$ics$1@dont-email.me>
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 <ivtqc2$ics$1@dont-email.me>
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:8330

Show key headers only | View raw


MikeP wrote:
> Robert Wessel wrote:
>> On Sat, 16 Jul 2011 04:29:14 -0500, "MikeP" <mp011011@some.org> 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
       .      @       .

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Implicit convervsion of bool to int: why? "MikeP" <mp011011@some.org> - 2011-07-16 04:29 -0500
  Re: Implicit convervsion of bool to int: why? Krice <paulkp@mbnet.fi> - 2011-07-16 02:37 -0700
    Re: Implicit convervsion of bool to int: why? "MikeP" <mp011011@some.org> - 2011-07-16 04:43 -0500
      Re: Implicit convervsion of bool to int: why? BGB <cr88192@hotmail.com> - 2011-07-16 02:54 -0700
        Re: Implicit convervsion of bool to int: why? Abhishek Padmanabh <abhishek.padmanabh@gmail.com> - 2011-07-16 18:52 +0100
          Re: Implicit convervsion of bool to int: why? BGB <cr88192@hotmail.com> - 2011-07-16 23:03 -0700
            Re: Implicit convervsion of bool to int: why? Abhishek Padmanabh <abhishek.padmanabh@gmail.com> - 2011-07-17 09:02 +0100
              Re: Implicit convervsion of bool to int: why? BGB <cr88192@hotmail.com> - 2011-07-17 02:04 -0700
  Re: Implicit convervsion of bool to int: why? Robert Wessel <robertwessel2@yahoo.com> - 2011-07-16 22:28 -0500
    Re: Implicit convervsion of bool to int: why? "MikeP" <mp011011@some.org> - 2011-07-17 00:02 -0500
      Re: Implicit convervsion of bool to int: why? Robert Wessel <robertwessel2@yahoo.com> - 2011-07-17 02:04 -0500
        Re: Implicit convervsion of bool to int: why? "MikeP" <mp011011@some.org> - 2011-07-17 05:38 -0500
        Re: Implicit convervsion of bool to int: why? "MikeP" <mp011011@some.org> - 2011-07-20 05:14 -0500
      Re: Implicit convervsion of bool to int: why? Niklas Holsti <niklas.holsti@tidorum.invalid> - 2011-07-30 13:18 +0300
        Re: Implicit convervsion of bool to int: why? Niklas Holsti <niklas.holsti@tidorum.invalid> - 2011-07-31 13:48 +0300
  Re: Implicit convervsion of bool to int: why? James Kanze <james.kanze@gmail.com> - 2011-07-20 11:08 -0700

csiph-web