[Gambas-user] string operator ==

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Nov 10 18:45:01 CET 2010


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 <gambas at ...1...>

> > 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
> >
>
> The priority of NOT is greater than the priority of '='.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list