Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
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 > > There is other similar bug or non-convinient feature. > > > > IF NOT 1 = 2 THEN > > PRINT "This is never

Re: [Gambas-user] string operator ==

2010-11-10 Thread Benoît Minisini
> 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

Re: [Gambas-user] string operator ==

2010-11-10 Thread Jussi Lahtinen
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 Ju

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Benoît Minisini
> 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,

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Demosthenes Koptsis
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://gamba

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Benoît Minisini
> 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

Re: [Gambas-user] string operator ==

2010-11-10 Thread Caveat
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

Re: [Gambas-user] string operator == and others

2010-11-10 Thread Demosthenes Koptsis
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

Re: [Gambas-user] string operator ==

2010-11-10 Thread Caveat
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 update to

Re: [Gambas-user] string operator ==

2010-11-10 Thread Werner
On 10/11/10 20:38, Caveat wrote: > 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 >

Re: [Gambas-user] string operator ==

2010-11-10 Thread Benoît Minisini
> 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 expe

Re: [Gambas-user] string operator ==

2010-11-10 Thread Demosthenes Koptsis
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 fro

Re: [Gambas-user] string operator ==

2010-11-09 Thread Demosthenes Koptsis
i had 2.21 from 21/08/2010 now i get revision 3289 wait to install it 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 you upgrade to the latest version? > --

Re: [Gambas-user] string operator ==

2010-11-09 Thread Demosthenes Koptsis
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

Re: [Gambas-user] string operator ==

2010-11-09 Thread Benoît Minisini
> Yes. I tried at amd64 and i386. I get the same results. > > i attach screenshot from i386. > Did you upgrade to the latest version? -- Benoît Minisini -- The Next 800 Companies to Lead America's Growth: New Video Wh

Re: [Gambas-user] string operator ==

2010-11-09 Thread Jussi Lahtinen
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 On Tue, Nov 9, 2010 at 14:46, Demosthenes Koptsis wrote: > Hi, > > i dont understand the following result. > > PRINT "abc" == "ab" 'true > PRIN

[Gambas-user] string operator ==

2010-11-09 Thread Demosthenes Koptsis
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?