[Gambas-user] PRB: Compile does not find wrong type

Benoit Minisini gambas at ...1...
Sat Mar 27 11:05:49 CET 2004


On Saturday 27 March 2004 10:34, ron wrote:
> Hallo,
>
> Oh Oh again nasty ron.
>
> In the subroutine I have a DIM xxx AS String[]
> then I call in this subroutine an other sub routine
>
> SUB AAA()
> 	DIM xxx AS String[]
> 	'code to fill xxx
> 	ShowMe(xxx)
> END
>
> SUB ShowMe(xxx AS Collection)
> 	'do the show
> END
>
> As you can see in the second I declare it by mistake as Collection.
> Both compile buttons on main form pass
> Make executable pass also
> At running I got the 'Got String expected Collection' message.
> I had this several times before so I decide to report it, just in case.
> We want v1.0 as good as possible?
>
> BTW the tooltip of both buttons say 'Compile All'
> I thought it was this module and all modules.
>
> I feel lucky with gambas :)
>
> Ron
>

This is not a bug, this is the way Gambas works :-) The compiler don't check 
any datatype. All the work is done by the interpreter.

Regards,

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list