This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// declaration | |
class TestEntity extends Entity | |
{ | |
@:attr var attribute:Int = 0; | |
} | |
// haxe | |
test1.attribute = 10; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main | |
{ | |
public static function main() | |
{ | |
print(">> "); | |
var position = -1; | |
var history = []; | |
var input = ""; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = bytes.get; | |
var s = bytes.readString; | |
var i = 0; | |
var l = bytes.length; | |
if (b(i) == 0xFF && b(i+1) == 0xD8 && b(i+2) == 0xFF && b(i+3) == 0xE0) | |
{ | |
i += 4; | |
if (s(i+2,1) == "J" && s(i+3,1) == "F" && s(i+4,1) == "I" && s(i+5,1) == "F" && b(i+6) == 0x00) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main | |
{ | |
public static function main() | |
{ | |
new Main(); | |
} | |
public function new() | |
{ | |
var signal0 = new Signal0(); |
NewerOlder