It is the purpose of this C FFI to expose all the necessary functionality within a C/C++ dynamic
link library to provide a usable relationship between the two (or indeed three) languages.
All Neko libraries are really dynamic link libraries written for the Neko Virtual Machine using the
extension ndll , instead of the more familiar dll . This is the same for all supported operating
systems, so as to maintain uniformity. If you take a look in the Neko directory, you will see that
several libraries with this extension are available with the initial Neko installation. When creating
your first Neko library, you can use these preexisting libraries in order to gain a better
understanding for creating the various haXe classes that will wrap your ndll functionality.
For example, the regexp ndll library is wrapped with the EReg.hx class in the root of the haXe
??‘
??‘
??‘
??‘
??‘
??‘
Part III: Extending the Possibilities
556
standard framework. Also, if you ??™ re feeling really adventurous, it might pay to download the source for
the Neko Virtual Machine and its tools and check out firsthand all of the inner workings of a fully
fledged Neko library.
Pages:
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030