🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.simula
Article #107

SIMULA STATEMENTS

#107
From: Morten Gulbrandsen
Date: Sun, 09 Mar 2003 19:11
45 lines
1719 bytes
hello programmers,
here is a piece of code from  
http://www.cis.um.edu.mt/~jskl/talk.html#Statements



cim  -V
cim-3.36-i686-pc-linux-gnu


cat  general_example.sim
Begin
   Integer i;
   For i:= 1, 13, 20 step 10 until 40, 70, i+1 
      while i lt 76, 100 step 50 until 250, 1000, 1500 
          do  
          OutInt(i,5);
End;




cim  general_example.sim 
Compiling general_example.sim:
gcc -g -O2 -c general_example.c
gcc -g -O2 -o general_example general_example.o -L/usr/local/lib -lcim
./general_example 
    1   13   20   30   40   70   71   72   73   74   75  100  150  200
 250 1000
 1500


===

I can compile it,  run it and I believe it is a nested for and while
loop.

can someone please comment it and perhaps explain how this  looks in
object pascal or C++  ?

where can I get more general tutorial information about simula ?

Yours Sincerely

Morten Gulbrandsen
Technical Details
Message-ID: <60ca69db.0303090650.77d98738@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113dd9,edb888b8fb2630af,start
X-Google-Attributes: gid113dd9,public
X-Google-ArrivalTime: 2003-03-09 11:11:16 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: Morten.Gulbrandsen@rwth-aachen.de (Morten Gulbrandsen)
Newsgroups: bit.listserv.simula
Subject: SIMULA STATEMENTS
Date: 9 Mar 2003 11:11:14 -0800
Organization: http://groups.google.com/
Lines: 45
Message-ID: <60ca69db.0303090650.77d98738@posting.google.com>
NNTP-Posting-Host: 80.133.129.133
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1047237075 21877 127.0.0.1 (9 Mar 2003 19:11:15 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 9 Mar 2003 19:11:15 GMT