GLBasic forum

Main forum => Bug Reports => Topic started by: MrTAToad on 2011-Jan-10

Title: Multiple TYPEs with same name
Post by: MrTAToad on 2011-Jan-10
This compiles and runs :

Code (glbasic) Select
TYPE a
a%
ENDTYPE

TYPE a
b%
ENDTYPE

LOCAL c AS a


Should types with the same name be allowed ?
Title: Re: Multiple TYPEs with same name
Post by: Kitty Hello on 2011-Jan-10
No. It compiles? Oh dear.
Title: Re: Multiple TYPEs with same name
Post by: Schranz0r on 2011-Jan-11
Cool :D
Overloading xD
Title: Re: Multiple TYPEs with same name
Post by: backslider on 2011-Jan-11
Overloaded classes? xD

Function overloading would be cool *g*
... I know, it´s too OOP :P
Title: Re: Multiple TYPEs with same name
Post by: MrTAToad on 2011-Jan-11
QuoteOverloading xD
Not quite :P