PageRenderTime 6ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 36 lines | 27 code | 9 blank | 0 comment | 2 complexity | c603b63d164d603d6508a99fc3b525c6 MD5 | raw file
 1nondynamic
 2
 3aa = nondynamic.A();
 4
 5aa.a = 1;
 6aa.b = 2;
 7try
 8  aa.c = 2;
 9  err = 0;
10catch
11  err = 1;
12end_try_catch
13
14if (!err)
15  error("A is not static")
16endif
17
18
19B=@() subclass(nondynamic.A(),'c',4);
20
21bb = B();
22bb.c = 3;
23try
24  bb.d = 2
25  err = 0
26catch
27  err = 1
28end_try_catch
29
30if (!err)
31  error("B is not static")
32endif
33    
34cc = nondynamic.C();
35cc.d = 3;
36