SHOW:
|
|
- or go back to the newest paste.
1 | - | var d:Object=new Object(); |
1 | + | class T { |
2 | int a; | |
3 | - | d.a=4; |
3 | + | }; |
4 | ||
5 | - | function f(s:Object):void { |
5 | + | T *d=new T(); |
6 | - | trace(s.a); |
6 | + | |
7 | - | s=new Object(); |
7 | + | d->a=4; |
8 | - | s.a=5; |
8 | + | void f(T *s) { |
9 | - | trace(s.a); |
9 | + | cout<< s->a; |
10 | s=new T(); | |
11 | s->a=5; | |
12 | cout<< s->a; | |
13 | } | |
14 | - | trace(d.a); |
14 | + | |
15 | f(d); | |
16 | cout<< d->a; |