PageRenderTime 11ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/smart_pointer_simple_runme.m

#
Objective C | 15 lines | 12 code | 3 blank | 0 comment | 4 complexity | cf2e9d0dc0677c3b9aa5355ec43bc412 MD5 | raw file
 1smart_pointer_simple
 2
 3f = Foo();
 4b = Bar(f);
 5
 6b.x = 3;
 7if (b.getx() != 3)
 8    error
 9endif
10
11fp = b.__deref__();
12fp.x = 4;
13if (fp.getx() != 4)
14    error
15endif