Prev | Current Page 582 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

Neko is one of the few languages that does not have a nervous breakdown because you chose to
include backslashes and forward slashes, as well as a couple of parent directory signifiers, throughout a
path string. Certainly, something we very much welcome. For example, on our hard drive, we could
reference the FileSystem class file like this:
var path = ???C:\\haxe\\std\\../../haxe\\std\\neko/FileSystem.hx???;
As you can see, it ??™ s pretty messy, but sometimes you can really benefit from this level of leniency.
Especially when dealing with paths constructed with functions.
Another great feature is being able to quickly change between relative and absolute paths with ease. As
you can probably see, the preceding example is kind of both absolute and relative, which can be
lifesaving when building distributed applications, where your level of interaction with the end user
machine may be somewhat limited.
fullPath()
The fullPath method of the neko.FileSystem class provides the means to directly provide an
absolute path representation of a given relative path.


Pages:
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594