Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utcs!mnetor!seismo!columbia!caip!princeton!allegra!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!uiucdcs!okstate.UUCP!uokvax.UUCP!emjej From: emjej@uokvax.UUCP.UUCP Newsgroups: net.lang Subject: Re: compound statements Message-ID: <9000037@uokvax.UUCP> Date: Mon, 14-Jul-86 09:11:00 EDT Article-I.D.: uokvax.9000037 Posted: Mon Jul 14 09:11:00 1986 Date-Received: Wed, 16-Jul-86 22:30:53 EDT References: <5281@topaz.RUTGERS.EDU> Lines: 22 Nf-ID: #R:topaz.RUTGERS.EDU:5281:uokvax.UUCP:9000037:000:800 Nf-From: uokvax.UUCP!emjej Jul 14 08:11:00 1986 /* Written 3:56 pm Jul 7, 1986 by sommar@enea.UUCP in net.lang */ I would guess Algol doen NOT force you to use BEGIN-END. Simula does definitely not do it, and as far I know Algol is a true subset of Simula. /* End of text from net.lang */ In Algol W, a program is a statement (see the BNF), so beginning programmers often see programs like for i:= 10 to 100 by 5 do write(i, " degrees C = ", 1.8 * i + 32.0, " degrees F"). In Algol 68, if memory serves, a particular-program is a unit, so one should be able to do similar things. Same goes for procedure bodies, so to show the halting problem is insoluble, one can write (perhaps prepending "Behold!" as was done for a famous proof of the Pythagorean theorem :-) proc paradox void: while halts(paradox) do skip od James Jones