PageRenderTime 46ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
MATLAB | 39 lines | 28 code | 11 blank | 0 comment | 4 complexity | 8c1a3e627dd168f7e8d742c6e48836ca MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. namespace_class
  2. try
  3. p = Private1();
  4. ok = 1;
  5. catch
  6. ok = 0;
  7. end_try_catch
  8. if (ok)
  9. error("Private1 is private")
  10. endif
  11. try
  12. p = Private2();
  13. ok = 1;
  14. catch
  15. ok = 0;
  16. end_try_catch
  17. if (ok)
  18. error("Private2 is private")
  19. endif
  20. EulerT3D.toFrame(1,1,1);
  21. b = BooT_i();
  22. b = BooT_H();
  23. f = FooT_i();
  24. f.quack(1);
  25. f = FooT_d();
  26. f.moo(1);
  27. f = FooT_H();
  28. f.foo(Hi);