Okay, so the below code works for the byte type:
type byte = range[uint8(0)..uint8(128)] or range[0x00..0x80] or char
Run
but for the `bytearray`, because a normal nim array doesn't know what my byte
type is and a `hex` or `char` is already known, they need to be expli
Would the below code work?
type byte = range[uint8(0)..uint8(128)] or char
Run
Thank you all for the help!
Some time the compiler does what you want and then it just doesn't! This
happens when running one or more lines of code and then when you run it again
there's an issue. For example:
# worked
type byte = range[uint8(0)..uint8(128)] # or just uint8 without the range
type byte