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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1901f265c928a511 X-Google-Attributes: gid103376,public Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Roland Illig Newsgroups: comp.lang.ada Subject: Re: new revision ada Date: Tue, 22 Jun 2004 04:16:34 +0200 Message-ID: <2jpj43F12qulvU1@uni-berlin.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de wExNvCPpkLn2USJXpL0BqwzcB8Ddl+1grUxMyTBYTcSNi+Ryc= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040528 Debian/1.6-7 X-Accept-Language: de-de, de, en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:1755 Date: 2004-06-22T04:16:34+02:00 List-Id: James Rogers wrote: > tmoran@acm.org wrote in news:MxrBc.125243$3x.100303@attbi_s54: > > >>>... and can pass more information in the >>>exception instead of just a string). >> >> I don't understand why this is considered a problem. Why not make: >> type data_to_pass is record ... >> function enstring(x : data_to_pass) return string; >> function destring(s : string) return data_to_pass; > > Why not consider all leaving exception messages as strings. > Any more complex information can be encoded in the string as an > XML message. That message can then be sent by well defined > mechanisms from one subprogram to another, one task to another, > and across distributed systems. 11.4.1#18 [Implementation Permissions] The string returned by Exception_Message may be truncated (to no less than 200 characters) by the Save_Occurence procedure (not the function), the Reraise_Occurrence procedure and the re-raise statement. You didn't want to encode an XML message in 200 characters, did you? :) Roland