[OpenBIOS] Changing toke's default to from decimal to hex?
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Mon Apr 26 17:27:48 CEST 2010
Stefan Reinauer wrote:
> toke merely defaults to decimal whereas openbios defaults to hex.
>
> You can get one or the other by using the word "hex" or "decimal" in
> your code before using any numbers. This is strongly recommended in
> order to keep code portable.
>
> Now, the question is: should we change the default to "hex" in toke?
I think the default should match what is in the OF spec, whether that be
decimal or hex, and all of openbios/tok/detok should agree. I know was
bitten in my Fcode work several times when copy/pasting examples between
an openbios-unix session and a test file I was attempting to run through
toke.
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the OpenBIOS
mailing list