Import case sensitive! (win32)

Archives Forums/BlitzMax Bug Reports/Import case sensitive! (win32)

fredborg(Posted 2008) [#1]
Hi,

Probably affects all platforms, but at least on windows it is problematic that the compiler differentiates between the same filename in different cases (because the os doesn't).

A simple example:

TypeBase.bmx:
SuperStrict
Type TypeBase 
	Field hi:Int
EndType

TypeA.bmx:
SuperStrict
Import "TypeBase.bmx"
Type TypeA Extends TypeBase
	Field yo:Int
EndType

TypeB.bmx:
SuperStrict
Import "typebase.bmx"
Type TypeB Extends TypeBase
	Field hello:Int
EndType

Test.bmx:
SuperStrict
Import "TypeA.bmx"
Import "TypeB.bmx"
Print "ok"
Run Test.bmx, whoops duplicate identifier error.
Change the case of the import filename to "typebase.bmx" in both TestA and TestB and it compiles without errors.

This had me pulling hairs for more than an hour!