PageRenderTime 21ms CodeModel.GetById 8ms app.highlight 9ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 21 lines | 14 code | 7 blank | 0 comment | 2 complexity | f9c04f86868d745f8503c53e3eab77d7 MD5 | raw file
 1director_wstring
 2
 3
 4B=@(string) subclass(A(string),\
 5		     'get_first',A.get_first(self) + " world!",\
 6		     'process_text',@(self) self.smem = u"hello"\
 7		     );
 8
 9b = B("hello");
10
11b.get(0);
12if (!strcmp(b.get_first(),"hello world!"))
13  error(b.get_first())
14endif
15
16b.call_process_func();
17
18if (!strcmp(b.smem,"hello"))
19  error(smem)
20endif
21