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

Chapter 3. Being Cross-platform with haXe

Targeting different platforms with the same code-base.

This chapter is about how to target several platforms from the same haXe code the thing that haXe is known for.

haXe allows us to target several platforms; so, you may want to take advantage of this feature to be able to use your applications or libraries on several platforms. Unfortunately, there are some drawbacks, but don't worry, we will go through them and see how to work around them.

In this chapter, we will:

  • See what is cross-platform in the standard library
  • Talk about platform-specific packages
  • Learn about their specificities
  • Learn about conditional compilation

So, not only are we going to talk about being cross-platform, but also about platform-specific ...

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