I see the parseutils module has parseHex, parseOct and parseInt and the dom 
module exposes a C function parseInt that converts a C string to a number with 
an arbitrary radix, but I don't see a parseInt(s: string, radix: int): int in 
the documentation. Have I missed it, or is this functionality itself missing? 
Searching in the documentation on radix and base didn't throw up anything. 
Example use case: parsing a C-like integer constant - if it starts with '0', 
parse with radix 8, else with radix 10.

Reply via email to