Re: Octal and Hex Conversions

2005-07-24 Thread Leopold Toetsch
On Jul 24, 2005, at 6:37, Matt Diephouse wrote: I don't see any opcodes currently for transforming octal and hexadecimal strings to their integer equivalents. Should there be? Yes. Maybe: set Ix, Sy, Ibase # Ibase = 2..36 This seems like a common language feature (at least for Parrot's

Octal and Hex Conversions

2005-07-23 Thread Matt Diephouse
I don't see any opcodes currently for transforming octal and hexadecimal strings to their integer equivalents. Should there be? This seems like a common language feature (at least for Parrot's target languages). And if there's no opcode, then I have to write the code in PIR. :-) Thanks. -- matt