Created
July 29, 2013 23:46
-
-
Save martinwells/6108911 to your computer and use it in GitHub Desktop.
structs in haxe
This file contains 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
@:publicFields class Struct | |
{ | |
public function new() {} | |
} | |
class MyStruct extends Struct | |
{ | |
var field1:String; | |
var field2:String; | |
var field3:Bool; | |
} | |
var s = new MyStruct(); | |
s.field1 = 'tada'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment