Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created July 29, 2013 23:46
structs in haxe
@: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