On 04/28/2013 11:51 PM, Mehrdad wrote:
On Sunday, 28 April 2013 at 21:29:06 UTC, Timon Gehr wrote:
On 04/28/2013 10:54 PM, Mehrdad wrote:
- std::vector<bool>

The issues surrounding vector<bool> are entirely unrelated.


Huh? It's entirely related.
The fact that sizeof(bool) * 8 != sizeof(byte) is what causes problems
in vector<bool>

Exactly. This is not the problem here.

(can't treat them like other types, which we can address
directly), and it's also one of the asymmetries bool has with integers
in D (and any other language).

Different situation, same cause: bool doesn't behave like an integer.


The issue discussed here is that some think it behaves too much like an integer.


Isn't that self-contradictory?

He is saying bool is an integral type in D. (i.e. it can be promoted to
'int' in order to support integer arithmetic.)

I thought we just established that boolean logic isn't integer logic?

Please make sure your statements make sense.

Reply via email to