Octal numerals
Created by: Lartu
When in LDPL you execute the statement
DISPLAY 0123
the value 83 is printed instead of 123. One would expect 123 to be printed, but this other number is printed instead because C++ asumes numerals that start with 0 (even 0 itself) to be encoded in octal base.
The same happens with vector accesses, for example if you store 1 in vector:0012, if you read vector:12 you'll find a 0, for the index that was accessed is not 12 but octal 12.
This should be fixed by checking if numerals have leading 0s and removing them (except, of course, if they are followed by a .
and decimals).