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!cyclone1.gnilink.net!gnilink.net!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: <2jpj43F12qulvU1@uni-berlin.de> Message-ID: User-Agent: Xnews/5.04.25 Date: Tue, 22 Jun 2004 03:41:33 GMT NNTP-Posting-Host: 12.73.184.149 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1087875693 12.73.184.149 (Tue, 22 Jun 2004 03:41:33 GMT) NNTP-Posting-Date: Tue, 22 Jun 2004 03:41:33 GMT Organization: AT&T Worldnet Xref: g2news1.google.com comp.lang.ada:1758 Date: 2004-06-22T03:41:33+00:00 List-Id: Roland Illig wrote in news:2jpj43F12qulvU1@uni- berlin.de: > James Rogers wrote: >> 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? :) No. I also do not expect that an Ada 95 limit on the length of an exception message will necessarily be retained for Ada 200X. For instance, the definition of Exception_Message may be retained for compatibility, while another kind of message, such as Extended_Exception_Message may be implemented a new string type that includes XML encoding and parsing/decoding capabilities. IMHO, this could be one area where Ada takes a lead rather than playing catch-up with other languages. Ada will be able to stake out some interesting capability by providing a string type that includes XML handling capabilities and then extending the use of that type to exceptions. The addition of such XML capabilities, even if an extension of the distributed systems annex, will allow Ada to take a vibrant position in modern distributed application development. Jim Rogers