[haXe] Abstract Classes?

Daniel Cassidy mail at danielcassidy.me.uk
Wed Dec 13 18:07:17 CET 2006


On 12/13/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > A.hx fails to compile, since access to the private function in the
> > typedef doesn't seem to be allowed, even from the same file. This
> > looks like a bug?
>
> Not exactly, it actually makes perfect sense considering the
> relationship between A and AApi. This way of implementing abstract
> classes don't allow private abstract metods, and I don't see an answer
> to that.

Hm... but then, there is not much point in allowing one to declare
private fields in a typedef, since those private fields are never
accessible from other objects.

Dan



More information about the Haxe mailing list