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-7-bit X-Google-Thread: 103376,820de86ed0dafb8a X-Google-Attributes: gid103376,public From: Richard D Riehle Subject: Re: Help Me Please :) Date: 2000/03/31 Message-ID: <8c146r$4rc$1@slb7.atl.mindspring.net>#1/1 X-Deja-AN: 604610663 References: <89rlvr$gn9$1@nntp3.atl.mindspring.net> <38D8A607.F61F0FFF@mail.com> <8brm79$jm3$1@slb6.atl.mindspring.net> <38E389D7.5CD82114@mail.com> Organization: MindSpring Enterprises X-Server-Date: 31 Mar 2000 02:57:31 GMT Newsgroups: comp.lang.ada Date: 2000-03-31T02:57:31+00:00 List-Id: In article <38E389D7.5CD82114@mail.com>, Mats Weber wrote: >I think the increase in complexity is already present in Ada.Exceptions. >Implementations have to reserve space for and pass that string around, >so I don't see why one could not pass other types. As I mentioned in my earlier reply to Robert Dewar, one can Raise and exception with the procedure in Ada.Exceptions where the string variable is nothing more than some numeric value(s) in string format. Strings are rather portable across many different platforms. These can be decomposed into their constituent numeric values and used for communicating with various operating systems. >Without this mechanism, it is quite hard to interface systems like POSIX >in a clean way, where there is a single exception + an error code. With >parameterized exceptions, it is very easy. As mentioned above, the Ada.Exceptions.Raise_Exception procedure allows us to link an exception identity to a message in the form of a string and Ada.Text_IO allows us to convert that string into an integer value for those exceptions where that might be appropriate. This is not implementation dependent and provides the very capability we are discussing. Richard Riehle