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.