Mike, this is (attention, pun:) super!

 Like the $static on static methods I asked Frank about, haven't got a
> reply.


Got one now! :-)

 Does it matter if the public fields get initialized before the super call?


When writing the Wiki page, I tried out how Flash / mxmlc handle field
initializers (remember, there is no language spec), and to my surprise found
out that non-static field initializer code gets evaluated *before* the
super call
and can't use "this". I did this wrong all the time in Jangaroo and didn't
fix it
yet, so the correct order in the JS prototype got wrong on the last commit
when using the Jangaroo-generated code. Sorry for that.
Does it matter? Well, Jangaroo worked fine for years implementing it
incorrectly, but it worked well for us.
I'd say for the sake of compatibility with "real" ActionScript, for
FalconJx,
let's do it like the original, so your code for "B" is perfect.

Well, almost ;-), two minor glitches I was only able to spot by diffing:

   - constructor: "this." missing before first "count"
   - comma missing before "foo$2: super$foo"


All this is taking shape so quickly, I'm really impressed!

Greetings
-Frank-

Reply via email to