[Gambas-user] ¿Bug In Gambas 1.9.20 with static long constants?

Benoit Minisini gambas at ...1...
Wed Nov 2 15:14:29 CET 2005


On Wednesday 02 November 2005 12:30, Dani Santos wrote:
> Hi!
>
> I've got a Static Class Module in my App where I define constants
> related to my Database: Default values, Size of VarChar fields, etc.
>
> The name of the class is CProcBBDD.
>
> Today, I've add this constants to the class:
>
> ' Default users.
> STATIC PUBLIC CONST DefaultAdminUserId AS Long = 1
> STATIC PUBLIC CONST DefaultSingleUserId AS Long = 2
>
> When I do something like:
> Dim lngIdUser

'... AS Long' I imagine...

>
> lngIdUser = CProcBBDD.DefaultSingleUserId
>
> Gambas says to me (translating from spanish):
> The program stopped unexpectedly
> sending the signal #11
>
> Please, report a bug...
>
> I add a simple project to reproduce the bug.
>
> NOTE: I'm currently using Gambas 1.9.20

It seems that there is a bug in constants declared as Long. I will look at 
it...

-- 
Benoit Minisini





More information about the User mailing list