Thoughts on unified integer literal improvements
abies at adres.pl
abies at adres.pl
Tue Jun 30 04:05:59 PDT 2009
"Max (Weijun) Wang" <Weijun.Wang at Sun.COM> napisał(a):
> How about a step further like --
>
> byte[] bs = 0x0102030405060708AABBCCDDEEFFy;
>
Which direction it would be read? byte[0] is 0x01 or 0x0FF ?
What with byte[] bs = 0xabcy; ? Would it be legal - and would it be equivalent to 0x0abcy, 0xa0bcy, 0xabc0y ?
I understand that it would be kind of byte[] literal, so no possibility of overwriting contents of existing byte array, short of using
System.arraycopy(0x0102030405060708AABBCCDDEEFFy,0,bs,0,14);
?
Regards,
Artur
More information about the coin-dev
mailing list