HaxeDoc2
5 var result = trySomething(); 6 switch (result){ 7 case None: 8 trace("Got None"); 9 case Some(s): 10 trace("Got a value: " +s) ...
|”OR” statement. For example, the following regular expression matches valid email addresses: 1 ̃/[A-Z0-9._\%-]+@[A-Z0-9.-]+\. ...
1 class Main { 2 static function main() { 3 var str = "abcdeeeeefghi"; 4 var r = ̃/e+/; 5 r.match(str); 6 trace(r.matched(0)); / ...
1 class Main { 2 static function main() { 3 var str = "XaaaYababZbbbW"; 4 var r = ̃/[ab]+/g; 5 // ["X","Y","Z","W"] 6 trace(r.sp ...
6 var z = -2; 7 8 trace(Math.abs(z)); // 2 9 trace(Math.sin(x*Math.PI)); // 1 10 trace(Math.ceil(y)); // 21 11 12 // log is the ...
1 class MathStaticExtension { 2 / Converts an angle in radiansto degrees / 3 inline public static function 4 toDegrees (radians ...
The problem here is that the compiler never actually “sees” the typehaxe.Template, so it does not compile it into the output. Fu ...
10.7 Serialization Many runtime values can be serialized and deserialized using thehaxe.Serializerandhaxe.Unserializer classes. ...
Serialization configuration Serialization can be configured in two ways. For both a static vari- able can be set to influence al ...
18 this.y = y; 19 } 20 21 @:keep 22 function hxSerialize(s:Serializer){ 23 s.serialize(x); 24 } 25 26 @:keep 27 function hxUnser ...
haxe.ds.StringMap:bfollowed by the name-value pairs, followed byh(e.g.by1:xi2y1:knh for{"x" => 2, "k" => null}) haxe.ds.In ...
1 typedef MyData ={ 2 var name:String; 3 var tags:Array; 4 } 5 6 class Main { 7 static function main() { 8 var s = ’{ 9 "name": ...
Part IV IV Miscellaneous ...
Chapter 11 Haxelib Haxelib is the library manager that comes with any Haxe distribution. Connected to a central repository, it a ...
name: The name of the library. It must contain at least 3 characters among the following: AZaz 0 (^9) . . In particular, no spa ...
Minor versions are incremented when new features are added. Patch versions are for small fixes that do not change the public AP ...
This adds two dependencies to the given Haxe library: 1.The library “tinkmacros” can be used in any version. Haxelib will then a ...
Chapter 12 Target Details 12.1 Javascript........................................... 12.1.1 Loading extern classes using ”requir ...
12.2 Flash 12.3 Neko 12.4 PHP.............................................. 12.5 C++............................................ ...
• LEGACYMACOSXSDK • LEGACYXCODELOCATION • MACOSXVER • MSVCVER • NDKV • NOAUTOMSVC • PLATFORM • QNXHOST • QNXTARGET • TOOLCHAINVE ...
«
2
3
4
5
6
7
8
9
10
11
»
Free download pdf