My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions

Issue 124 attachment: Foo.hx (472 bytes)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
class Foo {
var _a:Array<Int>;

public function new() {
_a = new Array();
}

inline public function get(i:Int):Int {
trace("get()");
emptyFunc();
return _get(i);
}

inline public function set(i:Int, val:Int):Void {
trace("set()");
emptyFunc();
_set(i, val);
}

inline function emptyFunc():Void {
}

inline function _get(i:Int):Int {
return _a[i];
}

inline function _set(i:Int, x:Int):Void {
_a[i] = x;
}
}
Powered by Google Project Hosting