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 CBITWISE A OR B IN CBITWISE A XOR B IN CBITWISE NOT A IN CBITWISE SHIFT A LEFT BY B IN CBITWISE SHIFT A RIGHT BY B IN CGET BIT AT N FROM A IN C
Would this be a good candidate for the language or should it be an extension?