O'Reilly logo

haXe 2 by Benjamin Dasnois

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Magic functions

Magic functions are special functions that should be handled with care—they are very useful to interface with your target platform, but they can produce undefined behavior if they are not correctly used. In addition, they do not provide any kind of typing as they can only be used inside an untyped block.

Available magic functions are different from one platform to another and therefore, if you are targeting several platforms, you really have to be careful and should consider using conditional compilation.

The Flash magic

The Flash platform is certainly the one with the most magic functions. Certainly, you will not use all of them straight away, but they can always be useful. So, let's go on with them.

In addition, some of them are ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required