fork download
  1. #import <objc/objc.h>
  2. #import <objc/Object.h>
  3.  
  4. @interface TestObj : Object
  5. {
  6. int num;
  7. }
  8. - (void)foo;
  9. @end
  10.  
  11. @implementation TestObj
  12.  
  13. - (void)foo {
  14. printf("foo\n");
  15. }
  16.  
  17. int main()
  18. {
  19. id obj = [[TestObj alloc] init];
  20. [obj foo];
  21. return 0;
  22. }
  23. @end
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%*************************** parse error ************************
%**
%** syntax error, unexpected '#'
%**
%** in file "./prog.oz", line 1, column 0
%** ------------------ rejected (1 error)
stdout
Standard output is empty