Closed raould closed 12 years ago
e.g. how could i add a trace statement in there?
@:read( trace(this); this.other*2 ) var bigger:Float;
In Haxe, a block evaluates to the last evaluated subexpression, i.e. the following will do the trick:
@:read( { trace(this); this.other*2; } ) var bigger:Float;
e.g. how could i add a trace statement in there?
@:read( trace(this); this.other*2 ) var bigger:Float;