tb0067.pp 469 B

12345678910111213141516171819202122232425262728293031
  1. { Old file: tbs0074.pp }
  2. { shows MAJOR bugs when trying to compile valid code OK 0.99.1 (PM/CEC) }
  3. type
  4. tmyobject = object
  5. constructor init;
  6. procedure callit; virtual;
  7. destructor done; virtual;
  8. end;
  9. constructor tmyobject.init;
  10. Begin
  11. end;
  12. destructor tmyobject.done;
  13. Begin
  14. end;
  15. procedure tmyobject.callit;
  16. Begin
  17. WriteLn('Hello...');
  18. end;
  19. var
  20. obj: tmyobject;
  21. Begin
  22. obj.init;
  23. obj.callit;
  24. { obj.done;}
  25. end.