Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.txt 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. interface IInterface
  2. {
  3. void DoSomething();
  4. }
  5. namespace MyApplication
  6. {
  7. /*
  8. * This ia a test class.
  9. */
  10. class SomeClass : IInterface
  11. {
  12. array<float> m_arr;
  13. array<SomeClass@> m_children;
  14. array<array<SomeClass@>> m_subChildren; // Nested templates
  15. SomeClass()
  16. {
  17. // Add some integers
  18. m_arr.insertLast(1.0f);
  19. m_arr.insertLast(1.75f);
  20. m_arr.insertLast(3.14159f);
  21. uint x = 0x7fff0000;
  22. int y = 9001;
  23. }
  24. void DoSomething()
  25. {
  26. print("Something! " + 'stuff.');
  27. for (uint i = 0; i < m_arr.length(); i++) {
  28. print(" " + i + ": " + m_arr[i]);
  29. }
  30. }
  31. protected void SomeProtectedFunction()
  32. {
  33. try {
  34. DoSomething();
  35. } catch {
  36. print("Exception while doing something!");
  37. }
  38. }
  39. }
  40. }
  41. void Main()
  42. {
  43. SomeClass@ c = SomeClass();
  44. c.DoSomething();
  45. }