Prev | Current Page 284 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

To make the things right, the class has
to explicitly be imported somewhere in the code with the import statement.
Importing Libraries
Working with haXe, you will find that although the language is quite young, a lot of libraries and tools
are already available. The haXe environment comes with a standard framework of classes that have a
very generic purpose and more functionalities can be integrated using the haxelib tool.
haXe Standard Library
haXe distribution comes with a fully - fledged library with many useful tools. In the examples so far, some
of those functionalities have been already explored. When using types defined in the standard library, it
is enough to import the files needed or to reference their complete names; the compiler will treat them as
part of the current project.
The code of the standard library can be found in the std directory of the haXe installation. It contains
functionalities that are cross - platform and others that are platform specific. Table 6 - 1 gives a brief
description of the included packages.


Pages:
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296