comp.lang.ada
 help / color / mirror / Atom feed
From: Chris Moore <zmower@ntlworld.com>
Subject: Re: About String
Date: Sun, 08 Jun 2008 19:26:21 +0100
Date: 2008-06-08T19:26:21+01:00	[thread overview]
Message-ID: <5vV2k.100215$x55.53072@newsfe17.ams2> (raw)
In-Reply-To: <x26ph24q0srg.yccve8hoi66z$.dlg@40tude.net>

> On Sun, 08 Jun 2008 09:47:30 +0300, Niklas Holsti wrote:
> 
>> That said, I admit that I, too, have made this mistake once or 
>> twice. But not lately.

Me too.  I think it's one of those mistakes that sticks in the mind.

Dmitry A. Kazakov wrote:

> But then, for regularity sake, you would need to add exception handling to
> all declarative parts:
> 
> package A is
>     <some declarations>
> exception
>     <handling elaboration problems of A, HOW?>  (:-))
> end A;
> 

It might make tracing elaboration errors easier.  :)

Barnes says "... in any handler we are assured that all declarations of 
the unit were successfully elaborated and so there's no risk of 
referring to something that does not exist."  That's sensible but it 
does mean the compiler has to undo memory allocations if they occur in a 
declaration and a subsequent declaration raises an exception.

Chris



  parent reply	other threads:[~2008-06-08 18:26 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-06 17:29 About String Sébastien Morand
2008-06-07 16:18 ` Simon Wright
2008-06-07 17:01   ` Pascal Obry
2008-06-07 22:13     ` Chris Moore
2008-06-08  6:47       ` Niklas Holsti
2008-06-08  7:35         ` Dmitry A. Kazakov
2008-06-08 10:29           ` Sebastien Morand
2008-06-08 10:53             ` Dmitry A. Kazakov
2008-06-08 11:14           ` Niklas Holsti
2008-06-08 13:16             ` Dmitry A. Kazakov
2008-06-08 17:17               ` Niklas Holsti
2008-06-09  7:26                 ` Dmitry A. Kazakov
2008-06-08 11:48           ` Martin
2008-06-08 13:17             ` Conditional declarations (was: About String) Dmitry A. Kazakov
2008-06-08 18:26           ` Chris Moore [this message]
2008-06-08 18:32         ` About String Robert A Duff
2008-06-08 20:51           ` Maciej Sobczak
2008-06-08 21:19             ` Robert A Duff
2008-06-09  7:14               ` Dmitry A. Kazakov
2008-06-09  9:43                 ` Georg Bauhaus
2008-06-09 10:25                   ` Dmitry A. Kazakov
2008-06-09 10:42                     ` Sébastien Morand
2008-06-09 11:43                     ` Georg Bauhaus
2008-06-09 12:03                       ` Dmitry A. Kazakov
2008-06-15 19:38                 ` Robert A Duff
2008-06-15 20:52                   ` Dmitry A. Kazakov
2008-06-15 22:06                     ` Robert A Duff
2008-06-16  8:31                       ` Dmitry A. Kazakov
2008-06-16 19:17                         ` Robert A Duff
2008-06-16 20:30                           ` Dmitry A. Kazakov
2008-06-16 22:02                           ` Georg Bauhaus
2008-06-16 23:04                             ` Robert A Duff
2008-06-09 11:00               ` Georg Bauhaus
2008-06-09 14:27                 ` Britt Snodgrass
2008-06-15 19:50                   ` Robert A Duff
2008-06-15 19:48                 ` Robert A Duff
2008-06-08 11:13     ` Simon Wright
2008-06-08 19:03       ` Sebastien Morand
replies disabled

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