package; @:genericBuild(ElementMacroGeneric.build("x,y,z")) class Element //Const { public var y:Int = 0; public var x:Int = 0; public var z:Int = 0; public function new() { trace("new element"); calc__x(); calc__y(); calc__z(); } public inline function calc__x():Void { x++; trace("called calc_x : " + x); } public inline function calc__y():Void { y++; trace("called calc_y : " + y); } public inline function calc__z():Void { z++; trace("called calc_z : " + z); } }