[haXe] HAXE and MMcomponents V2

Asger Ottar Alstrup asger at area9.dk
Fri Sep 15 15:29:21 CEST 2006


On 9/15/06, Nicolas Cannasse <ncannasse at motion-twin.com> wrote:
>
> I don't think it's that simple.


Of course not, but it's not that complicated either.

While it could be possible to map AS2 syntax to an haXe AST, you will
> still have to run the haxe typer and use the haXe standard libraries
> (like flash.MovieClip instead of MovieClip) so it would require some
> work to be able to compile an AS2 class using haXe.


The AS2 syntax parser could make fixups to make things like MovieClip work
(maybe emitting a warning). The goal is to reduce the amount of changes
*required* to get the code running using the haXe library, to allow a
gradual transition to haXe syntax.

>From there,
> requiring the user to do additional minor syntax changes to adapt to
> haXe syntax is not a big thing.


That is not my experience. If you have a large piece of code, it takes a
long time, especially because you get basically no help from the compiler
until you are done with all your code. The changes are trivial, but you make
trivial mistakes converting the loops, and those bugs are hard to find
afterwards. Doing the transition in steps, where things continue to work and
you can test each step, is much, much safer.

Actually porting from AS2 to haXe is a lot more easy than porting from
> AS2 to AS3.


Yes.

Regards,
Asger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20060915/7b4f4cd4/attachment.htm


More information about the Haxe mailing list