comp.lang.ada
 help / color / mirror / Atom feed
From: "Santiago Urueña" <suruena@gmail.com>
Subject: Re: Proposal: pragma Assumption
Date: Wed, 28 May 2008 00:54:52 -0700 (PDT)
Date: 2008-05-28T00:54:52-07:00	[thread overview]
Message-ID: <4d2bb014-c956-454b-bcfb-a98cd524e5b4@m36g2000hse.googlegroups.com> (raw)
In-Reply-To: Mj2%j.41725$we7.34776@bgtnsc04-news.ops.worldnet.att.net

> I used Portability for one of many things that proves Ada is a
> better language. And conditional compiling help to destoys that.
>
Nobody is discussing that

>    -------------------
>    -- Unimplemented; --
>    -------------------
>
>    procedure Unimplemented is
>    begin
>       Ada.Exceptions.Raise_Exception
>         (Program_Error'Identity, "interrupts/signals not implemented");
>       raise Program_Error;
>    end Unimplemented;
>
> Then call "Unimplemented;"  where needed. and remove the call when
> routine is corrected.
>
I also considered this approach (but of course the procedure was
called "Asumption" and it received a boolean parameter :-), but when
compiling the final binary you are again at risk of forgetting to
search for any remaining calls to that procedure or to remove its body
(people make that kind of mistakes all the time). Instead, with pragma
Assumption the compiler will warn you, anyway it is common practice to
have different compilations options for each development phase, and
unless that option is explicitly added the compiler will reject any
occurrence of that pragma.

> --
> -- Specification Package: TODO
> --
> package ToDo is
>
>   --
>   -- List of functions and procedures specification that need to
>   -- be written.
>   --
>
> end ToDo ;
>
I didn't considered that, but has the same problems as the procedure
Unimplemented

> Check the list of rejected Ada 2005 updates.
>
I did, and I was unable to find any related proposal

Cheers,

--
Santiago Urueña-Pascual
Technical University of Madrid (UPM)



  reply	other threads:[~2008-05-28  7:54 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-25 18:59 Proposal: pragma Assumption Santiago Urueña
2008-05-25 22:34 ` Georg Bauhaus
2008-05-26 17:10   ` Santiago Urueña
2008-05-26 10:01 ` Simon Wright
2008-05-26 17:21   ` Santiago Urueña
2008-05-26 18:21     ` Simon Wright
2008-05-27  8:11       ` Santiago Urueña
2008-05-27 19:08         ` Simon Wright
2008-05-27  3:28 ` anon
2008-05-27  7:51   ` Santiago Urueña
2008-05-27  9:39     ` anon
2008-05-27 10:39       ` Georg Bauhaus
2008-05-27 11:27       ` Santiago Urueña
2008-05-28  1:12         ` anon
2008-05-28  7:54           ` Santiago Urueña [this message]
2008-05-30  0:27             ` Randy Brukardt
2008-05-30  7:50               ` Georg Bauhaus
2008-05-30 11:03                 ` Santiago Urueña
2008-05-31  5:56                 ` Stephen Leake
2008-05-31  9:04                   ` Georg Bauhaus
2008-06-02  8:24                   ` Santiago Urueña
2008-06-02 19:35                     ` anon
2008-05-30 11:02               ` Santiago Urueña
2008-05-28  7:58 ` Santiago Urueña
2008-05-28  8:24   ` Jean-Pierre Rosen
2008-05-28 13:11     ` Santiago Urueña
2008-05-28  9:14   ` Georg Bauhaus
2008-05-28 13:14     ` Santiago Urueña
2008-05-28 11:01   ` anon
replies disabled

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