3 ms·
GForth uses 0 for 'false' but -1 for 'true'... that confuses me a lot.
by Dewie 13y ago
GForth uses 0 for 'false' but -1 for 'true'... that confuses me a lot.
- IanCal 13y agoI suppose it's because then it can just compare the first bit.
- deleted 13y ago[deleted]
- dlitz 13y agoBASIC does that, too.
- kybernetikos 13y agoI expect that it's because in twos complement representation -1 is represented as all bits set.