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
> 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
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
> 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,
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
> 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
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
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
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
>
> 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
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
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?
>
--
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
> 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
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
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?
17 matches
Mail list logo