🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.simula
Article #583

Troubles with 'cim'-simula-compiler

#583
From: Erik Brage
Date: Fri, 19 Mar 1993 21:57
45 lines
1926 bytes
Im having trouble using the 'cim' compiler under unix. I previously used the
'sc' compiler, also under unix, but on another system.
The cim compiler is supposed to be fairly standard, but it complains on my
virtual: procedures, and also if i try to use a procedure as a parameter.
This little example, has been up and working with 'sc' but not with 'cim'
Has this to do with the fact that cim doesn't support virtuals' or uses
a different kind of syntax. Can anybody out there help me????

Example:
!--------------***start***-----------------;
BEGIN
   CLASS example;
   VIRTUAL:
   PROCEDURE print_something;
   BEGIN
      print_something;
   END;

   example CLASS newstuff;
   BEGIN
      PROCEDURE print_something;
      BEGIN
         OutText("Hello from newstuff!!!"); Outimage;
      END;
   END;

   example CLASS otherstuff;
   BEGIN
      PROCEDURE print_something;
      BEGIN
         OutText("Hello from otherstuff!!!"); Outimage;
      END;
   END;

   ! MAIN ;
   REF(newstuff) ns;
   REF(otherstuff) os;
   ns:-NEW newstuff;
   os:-NEW otherstuff;
END;
!---------------***** finnish *******;

The cim-compiler makes the following report:
"virt.sim", line 4: Formal or virtual procedure shall be specified.
Technical Details
Message-ID: <1993Mar19.215734.25012@kth.se>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!sunic!celsiustech.se!admin.kth.se!kth.se!elixir.e.kth.se!brage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dd9,746b4d49ef0be3e7,start
X-Google-Attributes: gid113dd9,public
X-Google-ArrivalTime: 1993-03-17 14:14:38 PST
Newsgroups: bit.listserv.simula
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!sunic!celsiustech.se!admin.kth.se!kth.se!elixir.e.kth.se!brage
From: brage@elixir.e.kth.se (Erik Brage)
Subject: Troubles with 'cim'-simula-compiler
Message-ID: <1993Mar19.215734.25012@kth.se>
Lines: 45
Sender: usenet@kth.se (Usenet)
Nntp-Posting-Host: bel.e.kth.se
Reply-To: brage@elixir.e.kth.se (Erik Brage)
Organization: School of EE, Royal Institute of Technology, Sweden
Date: Fri, 19 Mar 1993 21:57:34 GMT