Richard Hipp wrote:
> Hex literals are useful in conjunction with
> the bit-wise AND and OR operators (& and |) and in applications that make
> use of bit fields.
>
> The question is what to do with hex literals that are larger than 64 bits.

There are no bit operations on values larger than 64 bits, so such
literals should be rejected.

> (6) Do not support hexadecimal integer literals for casts and affinity
> coercions.

There is a compatibiliy constraint: parsing hexadecimal values out of
strings would change the documented behaviour of casts and coercions:
| When casting a TEXT value to INTEGER, the longest possible prefix of
| the value that can be interpreted as an integer number is extracted
| from the TEXT value and the remainder ignored.

So (6) appears to be the only viable choice.


Regards,
Clemens
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to