🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #6243

Re: Structured loops (WAS:Re: Turing programming language.)

#6243
From: Peter da Silva
Date: Thu, 26 Jan 1989 16:21
35 lines
1539 bytes
In article <9045@burdvax.PRC.Unisys.COM>, dave@emerald.PRC.Unisys.COM (David Lee Matuszek) writes:
> This is the same as the loop ... exit when <boolean> ... end loop;
> except that the sense of the test is reversed.  This exists in Turing.
> It also exists in an in-house language I designed and implemented a couple
> of years ago.  I don't know of any other languages that use it, however.

The Bourne shell uses it.

	while list; do list; done

And Forth.

	begin ... while ... repeat

And an assembly preprocessor Karl and I designed.

	.begin
	...
	.while condition-codes
	...
	.repeat

And of course this is equivalent to the common 'C' idiom.

	while(1)
	{
		...
		if(whatever) break;
		...
	}
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.
Work: uunet.uu.net!ficc!peter, peter@ficc.uu.net, +1 713 274 5180.   `-_-'
Home: bigtex!texbell!sugar!peter, peter@sugar.uu.net.                 'U`
Opinions may not represent the policies of FICC or the Xenix Support group.
Technical Details
Message-ID: <2894@ficc.uu.net>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!rochester!rutgers!bellcore!texbell!uhnix1!sugar!ficc!peter
References: <11@euteal.UUCP> <89Jan20.111000est.4328@turing.toronto.edu> <9045@burdvax.PRC.Unisys.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!mailrus!cornell!rochester!rutgers!bellcore!texbell!uhnix1!sugar!ficc!peter
From: peter@ficc.uu.net (Peter da Silva)
Newsgroups: comp.lang.misc
Subject: Re: Structured loops (WAS:Re: Turing programming language.)
Keywords: programming language
Message-ID: <2894@ficc.uu.net>
Date: 26 Jan 89 16:21:11 GMT
References: <11@euteal.UUCP> <89Jan20.111000est.4328@turing.toronto.edu> <9045@burdvax.PRC.Unisys.COM>
Organization: Xenix Support
Lines: 35