[Gambas-user] Class name bug.

Benoît Minisini gambas at ...1...
Mon Jun 27 00:28:33 CEST 2011


> some more examples
> 
> i have classes
> 
> cA
> cB
> cC
> 
> cB inherits cA
> cC inherits cB
> 
> 1) With 2 characters as class names the file browser did not show
> correct the class tree.
> 
> 2) After INHERITS instruction the class name is capitalized
> 
> 3) in Main module i get
> 
>   Dim hObject As Cc
>   hObject = New Cc
> 
> as autocorect, but the name of third class is cC and not Cc.
> 

The IDE assumes that all class names starts with an uppercase letter.

It is not formally required by the compiler, because the language is case 
unsensitive. 

But it is a naming convention I decided to enforce in the IDE, so that class 
names are easily identified at first sight.

Regards,

-- 
Benoît Minisini




More information about the User mailing list