A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021984.html below:

[Python-Dev] PEP 285: Adding a bool type

[Python-Dev] PEP 285: Adding a bool type [Python-Dev] PEP 285: Adding a bool typeDavid Abrahams David Abrahams" <david.abrahams@rcn.com
Sat, 30 Mar 2002 11:08:48 -0500
----- Original Message -----
From: "Andrew Koenig" <ark@research.att.com>

> David>     void f(int const&);
> David>     f(false); // error!
>
> For the sake of nitpicking correctness, I cannot help but point out
> that there is nothing wrong with the call of f(false) above unless you
> drop the "const" from f's parameter type.

Yeah, I realized that after posting it, and hoped nobody would notice.

void f(int const*);
bool x = false;
f(&x); // error!


thanks-for-nothing-ly y'rs,
dave




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4