Multiple TYPEs with same name

Previous topic - Next topic

MrTAToad

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 ?

Kitty Hello

No. It compiles? Oh dear.

Schranz0r

I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard

backslider

Overloaded classes? xD

Function overloading would be cool *g*
... I know, it´s too OOP :P

MrTAToad

QuoteOverloading xD
Not quite :P