comp.lang.ada
 help / color / mirror / Atom feed
From: Pascal Obry <pascal@obry.net>
Subject: Re: When a conditional expression is static, where can it be used?
Date: Thu, 01 Jul 2010 19:04:47 +0200
Date: 2010-07-01T19:04:36+02:00	[thread overview]
Message-ID: <4c2ccaa4$0$27573$ba4acef3@reader.news.orange.fr> (raw)
In-Reply-To: <cfa1bb81-2800-439d-b2a0-6a5dbbf240ac@16g2000prp.googlegroups.com>

Le 30/06/2010 21:12, Adam Beneschan a �crit :
> Ummm, not quite, because (1) Pascal didn't say anything about *why* he
> thought it shouldn't compile (his entire statement was "This should
> not compile I would say"), 

Because Sa is not covered by the alternatives.

And if you ask me I find this quite a bad style. I hope GNAT will have
some options to disallow if conditional expression in cases
alternatives. This makes the code hard to read.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|    http://www.obry.net  -  http://v2p.fr.eu.org
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver keys.gnupg.net --recv-key F949BD3B




  parent reply	other threads:[~2010-07-01 17:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30 10:39 When a conditional expression is static, where can it be used? Georg Bauhaus
2010-06-30 11:25 ` Pascal Obry
2010-06-30 14:39 ` Adam Beneschan
2010-06-30 17:35   ` Dmitry A. Kazakov
2010-06-30 19:12     ` Adam Beneschan
2010-06-30 20:00       ` Dmitry A. Kazakov
2010-06-30 20:16         ` Adam Beneschan
2010-07-01 17:04       ` Pascal Obry [this message]
2010-06-30 20:05     ` Georg Bauhaus
2010-06-30 20:29       ` Adam Beneschan
2010-06-30 20:45       ` Dmitry A. Kazakov
replies disabled

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