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

David Abrahams David Abrahams" <david.abrahams@rcn.com
2002年3月30日 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

AltStyle によって変換されたページ (->オリジナル) /