[haXe] Bug: extend and static problem
Nicolas Cannasse
ncannasse at motion-twin.com
Thu Apr 12 11:12:06 CEST 2007
> Just noticed a compiler problem.
[...]
> But the compiler doesn’t complain…
I'm not sure if the compiler should complain or not in that case.
You can actually access your minWidth variable by using Foo.minWidth.
Simply, the member variable minWidth have priority over the static one.
In general, defining the statics constants in uppercase (MIN_WIDTH) is
the recommended way to declare them.
Nicolas
More information about the Haxe
mailing list