Monkey v68c: EXTERN Global definitions

Monkey Forums/Monkey Bug Reports/Monkey v68c: EXTERN Global definitions

AdamRedwoods(Posted 2013) [#1]
(this is in Flash, but may be non-target specific)
Extern Global definitions changed. Now it adds the Class before it, that's ok.

What I have a problem with is when there's this:
Extern
	Class DRIVER = ""
		''---consts
		Global LESS_EQUAL:Int = "Context3DCompareMode.LESS_EQUAL"
		Global GREATER_EQUAL:Int = "Context3DCompareMode.GREATER_EQUAL"
		Global NEVER:Int = "Context3DCompareMode.NEVER"


as you see, i use these as constants so i don't need to recreate every class for every little constant. and these are commonly worded, so i want them separate in their own class.

But using Class="" results in
m_driver.context3d.setDepthTest(true,.Context3DCompareMode.LESS_EQUAL);


note the "." with no class preface.
For now I can underscore everything (DRIVER_LESS_EQUAL), but i think it would be cleaner and more flexible to allow an absent "class" for EXTERNS.