|
|
|
|
|
by adrianmsmith
965 days ago
|
|
The BBC micro and Archimedes used -1 as true in BASIC. It meant that you didn't need the distinction of "logical operators" (like && in C) and "bitwise operators" (like & in C). You could just use bitwise operators, e.g. the bitwise NOT operator would convert 0 (all bits clear) was -1 (all bits set) so there was no need for "logical operators". I always felt that was more elegant than C (but of course required a two's compliment machine, which BBC/Archimedes was, but C didn't require). |
|