[haXe] a haxe extern generator

Nicolas Cannasse ncannasse at motion-twin.com
Sat Feb 17 16:04:43 CET 2007


> This problem crept up a while ago, as far as I remember, when I try to
> extend an interface I get a haxe compile error saying I cannot extend an
> interface
> 
> e.g.
> 
> extern interface A {
> // ...
> }
> 
> extern interface B extends A {
> //..
> }

You need to use "implements" instead ;)

> I will look to implement this. Unfortunately, if I go this route, the
> default extern output will compile, but since actionscript does not
> require all parameters, there can be errors in the implementation...

I was thinking that you were just exporting externs classes ?
The AS implementation does not need to be changed.

> myWindow is instantiated and filled with a button, but the
> addEventListener is not. the addEventListener will use the Delegate
> class which requires the function createEast as its argument. Maybe I am
> writing this wrong...

It's possible that the Delegate is called by using a specific method (?)

Nicolas



More information about the Haxe mailing list