ok, i upgrated to svn3289
and i get i think correct results
PRINT abc == ab 'false
PRINT abc == abc 'true
PRINT aBc == abc 'true
On Tue, 2010-11-09 at 23:19 +0100, Benoît Minisini wrote:
Yes. I tried at amd64 and i386. I get the same results.
i attach screenshot from i386.
Did
Am I missing something here? This would seem to me to be a fairly
critical bug.
I'm running v2.19 here as provided by my distro (Ubuntu 10.04 64-bit)
and am also seeing the turned around logic giving what seems like
wrong results for all equality string comparisons.
Can we expect an
i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010
dd/mm/).
PRINT abc abc 'false
PRINT abc aBc 'false
PRINT ABC abc 'true
are these correct?
in http://gambasdoc.org/help/cat/stringop says
Returns if String1 is strictly lower than String2.
PRINT ABC abc 'true
Thanks for the (as usual) speedy reply Benoit.
You are right that the == operator is not often used. I have just
double-checked that the = operator does work as intended (phew!). My
only fear is that I may have introduced an == somewhere, purely out of
habit as a java programmer.
I'll hold off
i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010
dd/mm/).
PRINT abc abc 'false
PRINT abc aBc 'false
PRINT ABC abc 'true
are these correct?
in http://gambasdoc.org/help/cat/stringop says
Returns if String1 is strictly lower than String2.
PRINT ABC
On Wed, 2010-11-10 at 14:36 +0100, Benoît Minisini wrote:
i also check these, i use gambas2-2.21 rev3289 updated today (10/11/2010
dd/mm/).
PRINT abc abc 'false
PRINT abc aBc 'false
PRINT ABC abc 'true
are these correct?
in http://gambasdoc.org/help/cat/stringop says
you mean that
PRINT A a 'true
is similar like that
PRINT Asc(A) Asc(a) 'true
Yes.
--
Benoît Minisini
--
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the
There is other similar bug or non-convinient feature.
IF NOT 1 = 2 THEN
PRINT This is never printed
ENDIF
IF NOT 1 = 1 THEN
PRINT This is also never printed
ENDIF
IF NOT (1 = 2) THEN
PRINT This however works
ENDIF
Tested with Gambas 2.21 and with Gambas 3 rev 3281.
@ Ubuntu 10.04 64bit
Jussi
There is other similar bug or non-convinient feature.
IF NOT 1 = 2 THEN
PRINT This is never printed
ENDIF
IF NOT 1 = 1 THEN
PRINT This is also never printed
ENDIF
IF NOT (1 = 2) THEN
PRINT This however works
ENDIF
Tested with Gambas 2.21 and with Gambas 3 rev 3281.
@ Ubuntu
OK, makes sense.
Though there should be warning in documentation (to NOT section and to
Differences From Visual Basic).
And maybe compiler warning?
Jussi
2010/11/10 Benoît Minisini gam...@users.sourceforge.net
There is other similar bug or non-convinient feature.
IF NOT 1 = 2 THEN
Hi,
i dont understand the following result.
PRINT abc == ab 'true
PRINT abc == abc 'false
in http://gambasdoc.org/help/cat/stringop
says
Returns if two strings are equal. The comparison is case unsensitive.
1) why abc and ab says they are equal?
2) and abc == abc are not?
i have Gambas2 2.21 but i dont know which rev.
is there any way to find it?
On Tue, 2010-11-09 at 20:40 +0200, Jussi Lahtinen wrote:
That is bug... However I cannot reproduce it with Gambas 2.21 or with Gambas
3 rev 3281.
@ Ubuntu 10.04 64bit
Are you sure you got it correct?
Jussi
12 matches
Mail list logo