Very similar problem... Public Const LowestInteger As Integer = -2147483648 Yields; "Out of range"
Gambas 3 rev 3389 @ Ubuntu 10.10 Jussi 2010/11/27 Benoît Minisini <gam...@users.sourceforge.net> > > > > In Gambas2, I get a type mismatch error...but no error if ends in a 7 > > > > > > > > PUBLIC CONST LOWESTLONG AS Long = -9223372036854775808 'from wiki: > > > > -9.223.372.036.854.775.808 > > > > > > > > -Fernando > > > > > > Mmm. Yes. Strange, as it works inside the interpreter, and I thought > both > > > compiler and interpreter had the same "string to number" routine. > > > > > > I will look at that... > > > > OK, I see: the compiler reads the sign of the number in one place, and > the > > digits in another place. So it tries to read "9223372036854775808" as a > > positive integer, and of course it overflows, as the greatest long is > > "9223372036854775807". > > > > No solution at the moment... > > OK, that should be fixed in both Gambas 2 and Gambas 3 in revision #3328. > > Regards, > > -- > Benoît Minisini > > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user