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


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

Re: Implicit convervsion of bool to int: why?

From Niklas Holsti <niklas.holsti@tidorum.invalid>
Newsgroups comp.lang.c++
Subject Re: Implicit convervsion of bool to int: why?
Date 2011-07-31 13:48 +0300
Organization Tidorum Ltd
Message-ID <99kq78Flm0U1@mid.individual.net> (permalink)
References <ivrll6$jh0$1@dont-email.me> <ael4275glbj0abvp20jbrm9qivttojbnv8@4ax.com> <ivtqc2$ics$1@dont-email.me> <99i436FcfaU1@mid.individual.net> <j12q6h$1b3$1@dont-email.me>

Show all headers | View raw


HonestAbe wrote:
> Niklas Holsti wrote:
>> 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.
> 
> "Take Ada" and... what?

Did you have trouble with my grammar? MikeP was asking (indirectly, 
perhaps) for examples of languages without implicit conversions. So I 
said, "take Ada as an example". Clear now?

> Why don't YOU take Ada, and I'll take the hot chick!. :P

I already took Ada. Since about 1985 it still is the language that fits 
me best, thanks for asking.

I trust you and the hot chick are having a good time, too.

-- 
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