Bug 126 – spec for Add expression (pointer to bit)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dlang.org
Product
D
Version
D1 (retired)
Platform
x86
OS
Linux
Creation time
2006-05-04T11:05:00Z
Last change time
2014-02-15T13:16:28Z
Assigned to
bugzilla
Creator
benoit
Comments
Comment #0 by benoit — 2006-05-04T11:05:33Z
in http://www.digitalmars.com/d/expression.html
-> Add Expressions
If it is a pointer to a bit, the second operand is divided by 8 and added to the pointer. It is illegal if the second operand modulo 8 is non-zero.
1.) bit->bool
2.) Is this still correct?
Comment #1 by smjg — 2006-05-08T09:55:06Z
No. Bit hasn't been renamed to bool. The bit as a basic type has been withdrawn. A bool has a memory size of one byte.
The paragraph should just be deleted.