Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
There are two ways to represent octal numbers in Go: as a nunber, like 012345, and by typing the letter o to indicate that value is an octal, like 0o12345.
Description
There are two ways to represent octal numbers in Go: as a nunber, like
012345
, and by typing the lettero
to indicate that value is an octal, like0o12345
.However, gnolang only recognizes the latter case.
For example:
In this case, it recognizes the
0o12345
as octal well and prints the result5349
. But, if changes the code like below, It throws an error.expected behavior:
My guess is that this problem will be fixed by modifying the scanner file or op_eval.