From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,1e4280c6ade7eb23 X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Exception types? Date: 1998/06/19 Message-ID: <6mdke9$5uj$1@platane.wanadoo.fr>#1/1 X-Deja-AN: 364165811 Content-Transfer-Encoding: 8bit References: <3586FFC0.5FEC1CBC@fiu.edu> <6macfi$hm6$1@platane.wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: Adalog Newsgroups: comp.lang.ada Date: 1998-06-19T00:00:00+00:00 List-Id: Matthew Heaney a �crit dans le message ... >"Jean-Pierre Rosen" writes: > >> Therefore it is clear that *catching* an exception can only be done with >> statically defined exception names. Therefore, the only remaining >> interesting thing that could be done with "exception variables" would be >> raising. But this is now available with the package Ada.Exceptions. >> Therefore, there is no need to add these features to the language. > >True, but you gotta admit the syntax for raising an exception with a >message attached is a bit heavy: > > if then > Raise_Exception (IO_Error'Identity, "CRC check failed"); > end if; > >It just seems hipper to be able to say > > if then > raise IO_Error ("CRC check failed"); > end if; > >I'm sure the language design team considered things like this, and am >equally sure they had good reasons to reject it. Nice to fancy, though, >huh? True, but I would qualify this as a "nice to have" feature. A lot of "nice to have" features were considere in the design of Ada 95. Most of them were rejected on the ground that, even if each of the features would require -say- one week to implement, test, etc. , when doing the total, it would have slowed down the appearance of compilers by *years*. -- ---------------------------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://perso.wanadoo.fr/adalog