Skip to content

Instantly share code, notes, and snippets.

@martinwells
Created July 29, 2013 23:46
Show Gist options
  • Save martinwells/6108911 to your computer and use it in GitHub Desktop.
Save martinwells/6108911 to your computer and use it in GitHub Desktop.
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