>> Apart from unnessecary reference copying, this method seems OK. But I ask
>> you: would you use the same manner of determining wheter a given string
>> represents a float?
> Hi,
>
> first of all, I'd like to thank you for the time and effort you put in
> handling my posts :)
Well, these two were kinda fun, but I'm starting to wonder why you couldn't
solve these problems by yourself. Especially since I never heard about
Oolong before you started about it. No offence, just curious. :-)
> Now, here is my "long" answer:
>
[quoted text clipped - 12 lines]
> return false;
> }
This code also returns true for doubles, because every valid floating point
number string can be represented by an instance of float, including 0.0 and
infinities. I don't think that does any harm, though.
Your re-write is adequate, but of course it doesn't produce the fastest
running code.
> >> There is absolutely no support for longs or doubles!
>
> I'm not sure, but I think it's normal ! Because ldc and ldc_w should
> only be used with int and float.
> If you want to use double or long, you should use ldc2_w which follows
> in the code...
You are right, I overlooked that. ldc(_w) should only push 32 bits on the
stack.
> Finally, I fixed the code (for the float problem) this way (I hope it is
> now correct) :
[quoted text clipped - 71 lines]
> >
> snipped
Slimane Zouggari - 05 Feb 2004 09:41 GMT
> Well, these two were kinda fun, but I'm starting to wonder why you
couldn't
> solve these problems by yourself. Especially since I never heard about
> Oolong before you started about it. No offence, just curious. :-)
It's just because I am really busy right now and I didn't had the
courage to look into Oolong source code. So, you can say it's just
laziness ;) but, it's also due to my busy schedule. When I decided to
use Oolong, it was to develop my soft faster not to look at its source
code each time I suspected a bug :) And I didn't suspected so much and
annoying bugs (cf. the stack size limits not well computed for instance)
> This code also returns true for doubles, because every valid floating
point
> number string can be represented by an instance of float, including
0.0 and
> infinities. I don't think that does any harm, though.
> Your re-write is adequate, but of course it doesn't produce the fastest
> running code.
I know, but for the moment I don't need doubles and longs, so I'll leave
the code that way...
> "Dasch" <none@spam.com> schreef in bericht
news:40213469.6020302@spam.com...
>>Hi,
>>
>>first of all, I'd like to thank you for the time and effort you put in
>>handling my posts :)
>
> Well, these two were kinda fun, but I'm starting to wonder why you
couldn't
> solve these problems by yourself. Especially since I never heard about
> Oolong before you started about it. No offence, just curious. :-)
[quoted text clipped - 17 lines]
>
> This code also returns true for doubles, because every valid floating
point
> number string can be represented by an instance of float, including
0.0 and
> infinities. I don't think that does any harm, though.
> Your re-write is adequate, but of course it doesn't produce the fastest
[quoted text clipped - 8 lines]
>
> You are right, I overlooked that. ldc(_w) should only push 32 bits
on the
> stack.
snipped
Dasch - 06 Feb 2004 09:26 GMT
Hi,
>>Hi,
>>
[quoted text clipped - 4 lines]
> solve these problems by yourself. Especially since I never heard about
> Oolong before you started about it. No offence, just curious. :-)
Let's say my main problem is a huge lack of time right now ;)
So, I didn't want to jump in the source code
snipped
> This code also returns true for doubles, because every valid floating point
> number string can be represented by an instance of float, including 0.0 and
> infinities. I don't think that does any harm, though.
> Your re-write is adequate, but of course it doesn't produce the fastest
> running code.
so, I'll keep it :)
>>snipped