[haXe] Abstract Classes?

Daniel Cassidy lezekdan at gmail.com
Fri Dec 15 15:21:56 CET 2006


On 12/15/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
> > However, what I believe to have changed is that private fields within
> > a typedef are now private *to the file* and not private to the typedef
> > itself.
>
> Not exactly.
> Now, when you define a "private" in a typedef, you can access the field.
> It's a way so say "I know what I'm doing, I know this field might be
> private, but I still want to access it". Actually that can be used to
> implement the "friend" keyword as in C++.

Right, I knew I wouldn't guess it exactly :).

I would much prefer to see it private per file, just to discourage
misuse. But much respect for making haXe that bit more powerful :).

Dan



More information about the Haxe mailing list