[haXe] Bug: extend and static problem
Petersson, Tobias
Tobias.Petersson at laerdal.dk
Thu Apr 12 11:13:11 CEST 2007
Ok, cool... Thanks
-----Original Message-----
From: haxe-bounces at lists.motion-twin.com
[mailto:haxe-bounces at lists.motion-twin.com] On Behalf Of Nicolas
Cannasse
Sent: den 12 april 2007 11:12
To: The haXe compiler list
Subject: Re: [haXe] Bug: extend and static problem
> 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
--
haXe - an open source web programming language
http://haxe.org
More information about the Haxe
mailing list