comp.lang.ada
 help / color / mirror / Atom feed
From: mcsun!sunic!news.lth.se!dag@uunet.uu.net  (Dag Bruck)
Subject: Re: Hoare's gripes about Ada (should be so what)
Date: 9 Sep 93 18:53:59 GMT	[thread overview]
Message-ID: <26nu47$2nb@nic.lth.se> (raw)

In <comp.lang.ada> dewar@cs.nyu.edu (Robert Dewar) writes:
>How about a small sort contest. Suppose you want to write an Ada sort with
>the spec:
>
>	type x is array (integer range <>) of integer;
>	procedure sort (data : in out x); -- sorts into ascending order
>
>What's the least number of Ada tokens (counting from the IS to the semicolon
>following the END) that implements this spec?

Here's my contribution (appologies for any syntax errors):

	..... IS
	   NULL;
	END;

The implementation is not very correct, but what the heck.

			-- Dag B, C++ programmer :-)

             reply	other threads:[~1993-09-09 18:53 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-09-09 18:53 Dag Bruck [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-09-13 13:32 Hoare's gripes about Ada (should be so what) Wes Groleau x1240 C73-8
1993-09-10 18:08 Dag Bruck
1993-09-10  0:49 Michael Feldman
1993-09-09 21:07 Robert Dewar
1993-09-03 19:44 Wes Groleau x1240 C73-8
1993-09-02  3:10 Michael Feldman
1993-09-02  2:40 Robert Dewar
1993-09-02  2:38 Robert Dewar
1993-09-01 22:32 Peter Juhl
1993-09-01 17:02 Mark A Biggar
1993-09-01 14:15 agate!howland.reston.ans.net!darwin.sura.net!jabba.ess.harris.com!dr3w!sm
1993-09-01 13:14 Ste ve Masticola
1993-09-01  3:03 Michael Feldman
1993-08-26  3:04 Colin James 0621
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox