how to define byte array in Nemerle

183 Views Asked by At
def cmd = array [ 0x0F, 0x03 ]

this code defines array of integers so I want array of bytes

interesting that

def cmd = array [ 0x0Fb, 0x03b ]

this code defines the same...

how to define byte array instead of int array here?

1

There are 1 best solutions below

0
cnd On BEST ANSWER
def cmd = array [ 0x0F : byte, 0x03 ]

and modifiers doesn't work for hex so far.