comp.lang.ada
 help / color / mirror / Atom feed
From: mob@mit-amt.MEDIA.MIT.EDU (Mario O. Bourgoin)
Subject: Case statements: Error in my reply.
Date: 20 Mar 90 16:02:59 GMT	[thread overview]
Message-ID: <1936@mit-amt.MEDIA.MIT.EDU> (raw)
In-Reply-To: 1925@mit-amt.MEDIA.MIT.EDU

I apologize for having made an error in my reply's example.  I left
out the expression that evaluates to the selection key.  Here is the
correct code:

        (case-every n
		    (0
		     (1+ count))
		    ((0 1)
		     (1+ ocount))
		    ((0 1 2)
		     (writeln count ocount))
		    (else
		     (writeln "unknown n")))

--Mario

      reply	other threads:[~1990-03-20 16:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1990-03-19 15:49 Case statements in sane languages Dale Worley
1990-03-19 19:38 ` Mario O. Bourgoin
1990-03-20 16:02   ` Mario O. Bourgoin [this message]
replies disabled

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