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!news1.google.com!news.glorb.com!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: new revision ada From: James Rogers References: Message-ID: User-Agent: Xnews/5.04.25 Date: Mon, 21 Jun 2004 02:34:35 GMT NNTP-Posting-Host: 12.73.182.61 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1087785275 12.73.182.61 (Mon, 21 Jun 2004 02:34:35 GMT) NNTP-Posting-Date: Mon, 21 Jun 2004 02:34:35 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:1718 Date: 2004-06-21T02:34:35+00:00 List-Id: 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. Many systems are currently migrating towards using XML encoding for inter-process and inter-processor communication. Why not provide an Ada built-in mechanism to produce and consume exception information as streams of XML messages? Jim Rogers