How to create local const? Haxe 4 rc 4.
public function new(app:Application)
{
var width:Int = Std.parseInt(Compiler.getDefine("window-width"));
var height:Int = Std.parseInt(Compiler.getDefine("window-height"));
super(app, width, height);
}
I would like width
and height
to be constants