mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-10 00:36:48 +02:00
[haxe] polishing
This commit is contained in:
@@ -12,7 +12,7 @@ Haxe author). Note that this guide is for Haxe version 3. Some of the guide
|
|||||||
may be applicable to older versions, but it is recommended to use other
|
may be applicable to older versions, but it is recommended to use other
|
||||||
references.
|
references.
|
||||||
|
|
||||||
```haxe
|
```csharp
|
||||||
/*
|
/*
|
||||||
Welcome to Learn Haxe 3 in 15 minutes. http://www.haxe.org
|
Welcome to Learn Haxe 3 in 15 minutes. http://www.haxe.org
|
||||||
This is an executable tutorial. You can compile and run it using the haxe
|
This is an executable tutorial. You can compile and run it using the haxe
|
||||||
@@ -37,7 +37,7 @@ references.
|
|||||||
package. A package isn't necessary, but it's useful if you want to create a
|
package. A package isn't necessary, but it's useful if you want to create a
|
||||||
namespace for your code (e.g. org.yourapp.ClassName).
|
namespace for your code (e.g. org.yourapp.ClassName).
|
||||||
|
|
||||||
Omitting package declaration is the same as declaring empty package.
|
Omitting package declaration is the same as declaring an empty package.
|
||||||
*/
|
*/
|
||||||
package; // empty package, no namespace.
|
package; // empty package, no namespace.
|
||||||
|
|
||||||
@@ -636,7 +636,7 @@ enum ComplexEnum{
|
|||||||
ComplexEnumEnum(c:ComplexEnum);
|
ComplexEnumEnum(c:ComplexEnum);
|
||||||
}
|
}
|
||||||
// Note: The enum above can include *other* enums as well, including itself!
|
// Note: The enum above can include *other* enums as well, including itself!
|
||||||
// Note: This is what called *Algebraic data type* in some other languages.
|
// Note: This is what's called *Algebraic data type* in some other languages.
|
||||||
|
|
||||||
class ComplexEnumTest{
|
class ComplexEnumTest{
|
||||||
public static function example(){
|
public static function example(){
|
||||||
|
Reference in New Issue
Block a user