Binary number support
Created by: dvkt
It would be nice if LDPL could work with binary data. It would probably need two things:
- Support for binary (
0b1010
) and hex (0xFF
) number literals. - Support for bit operations.
Maybe the commands could look like this:
BITWISE A AND B IN C
BITWISE A OR B IN C
BITWISE A XOR B IN C
BITWISE NOT A IN C
BITWISE SHIFT A LEFT BY B IN C
BITWISE SHIFT A RIGHT BY B IN C
GET BIT AT N FROM A IN C
Would this be a good candidate for the language or should it be an extension?