| View previous topic :: View next topic |
| Author |
Message |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri May 16, 2003 4:40 pm Post subject: @equal bug |
|
|
Boy did this drive me crazy i hope no one else has posted on
this or i'm gonna kill myself for not remembering.
Run the code below, you may want to edit the loop to be shorter though.
Basically a string starting with "e" and any number upto 5119 returns
true with @equal to 0, 00, 000 or any other string of zeros even if you
use quotes. But not if you use @chr(34). I assum there is some logical
Delphi error code reason or something but i sure wasn't happy about it.
| Code: |
%x = 0
repeat
if @equal(e%x,000)
info =
%x = @succ(%x)
else
info not =
%x = @succ(%x)
end
until @equal(%x,5119)
|
BTW - If someone has posted on this don't feel obligated to tell me, I'd rather not know .
moke |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Fri May 16, 2003 5:14 pm Post subject: Re: @equal bug |
|
|
| moke wrote: | | But not if you use @chr(34). |
The @chr(34) functions makes a 'real' quote, not a 'vds' one...
Works
| Code: | %z = "000"
if @equal(%z,000)
info Equal
else
info Not equal
end |
Works not
| Code: | %z = @chr(34)000@chr(34)
if @equal(%z,000)
info Equal
else
info Not equal
end |
_________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri May 16, 2003 5:25 pm Post subject: |
|
|
Skit
I'm aware of that . The issue is that vds is telling me that
e1 = 000
or
e123 = 000
or
e5119 = 000
or
e1 = 0
moke |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri May 16, 2003 5:31 pm Post subject: |
|
|
| I should've mentioned that, I'm using 3.5. |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri May 16, 2003 5:43 pm Post subject: |
|
|
Seems it *was* a bug. I tried it in VDS 2.x and 3.x and it returned
true every time. Tried it in VDS 4.x and a 5 Beta, and it returns
false. So it was a bug, but seems it was resolved as of the 4.x
version.
-Garrett |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri May 16, 2003 5:53 pm Post subject: |
|
|
I prefer to say it IS a bug in 3.x but not in 4.x. I chose not to
upgrade to 4.x because of other bugs. Of course when 5 is available I'll
be happy to check it out. Fortunately, i can work around it and i've only
lost some time and maybe a little bit of my mind .
moke |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Fri May 16, 2003 6:09 pm Post subject: |
|
|
Wow, this is getting a little stranger add "-" or "+" in front of the e# and you still see the bug or compare e1 to e5 and it is still equal.
| Code: |
if @equal(-e1,000)
info =
else
info not =
end
|
or
| Code: |
if @equal(-e1,e7)
info =
else
info not =
end
|
moke |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri May 16, 2003 8:49 pm Post subject: |
|
|
| moke wrote: | I prefer to say it IS a bug in 3.x but not in 4.x. I chose not to
upgrade to 4.x because of other bugs. Of course when 5 is available I'll
be happy to check it out. Fortunately, i can work around it and i've only
lost some time and maybe a little bit of my mind .
moke |
Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.
-Garrett |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sat May 17, 2003 8:10 am Post subject: |
|
|
| Garrett wrote: |
Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.
|
Haven't we been down this road before?? People reporting bugs should be taken seriously, not put down
Try playing a little with moke's examples, and I think that you'll find out that this certainly is an issue, in VDS4
as well as VDS3....
E.g.
| Code: | %A = "+e1"
%B = "000"
if @equal(%A,%B)
info bug
else
info no bug
end
|
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat May 17, 2003 9:02 am Post subject: |
|
|
| Dr. Dread wrote: | | Garrett wrote: |
Is, was, whatever, the bug is no longer an issue since VDS 3 has been
superceeded by a new version. Basically, call it what you want, it's been
resolved and is no longer an issue in VDS.
|
Haven't we been down this road before?? People reporting bugs should be taken seriously, not put down
|
At the time Moke did not present any more information that would point
to this being a bug beyond version 3.x and he was stating that he still
considers it a bug since he's using version 3.0. I'm not trying to put him
down, but to clarify at that point that it is not considered a bug anymore
because the bug he had pointed out did not exist in version 4.x and
above. I do not wish to have misinformation being put out, so I wanted
to insure that it was known that it no longer was an issue in more current
versions.
As for the new code he has posted, I have not had a chance to try it yet,
so I can't comment on the new code yet.
-Garrett |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat May 17, 2003 9:12 am Post subject: |
|
|
Using the new code Moke posted, VDS 4.x also gets it wrong. VDS ?.?
did not get it wrong. So the bug is present in 4.x but not in ?.?
Doesn't help those who can't upgrade yet, but at least the issue was
resolved in version ..... Oooops! I can't say anything about that here.
-Garrett |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Sun May 18, 2003 12:13 pm Post subject: |
|
|
All right. I just see no reason why a serious bug report should be swept off the table just like that.
Especially when all it would take was just to try running moke's last examples to see that it
evidently still is a bug. I know nothing 'bout VDS5, but as long as v.5 is still vaporware then the
@equal function stays an issue in VDS
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|