Yes, there's no easy way of doing this right now. But you can write a
string -> int32 converter that will start with 0, then multiply by 10
and add the number for each digit in your string.

Maybe a float -> int32 function would help here.
I just modified int32_new on CVS so it can accept a float.

Thanks for that, in the meanwhile i am using: http://pastie.caboo.se/86027
As you can see it's not very performant, the first bytes could be
converted by $int, but just as a quick and dirty solution it works
fine.
Using lpos += 1 instead of $iadd will help a bit ;)

That is one of the points i haven't found docs on, though i know that
it works, i was just under the impression that the $i* functions are
generally faster when handling ints?

They are not, because there is no Int32 opcode set, so each operation will perform a C primitive call.

Nicolas


--
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to