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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9def0a9c238c7bd8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-16 16:48:03 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeed.icl.net!nntp.news.xara.net!xara.net!gxn.net!server6.netnews.ja.net!server4.netnews.ja.net!news5-gui.server.ntli.net!ntli.net!news11-gui.server.ntli.net.POSTED!not-for-mail Message-ID: <3A8E39B7.41A86E52@linuxchip.demon.co.uk> From: Dr Adrian Wrigley X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.14-5.0smp i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 0x Wish List References: <3A87F362.3B2F6CEE@bton.ac.uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 17 Feb 2001 00:43:35 -0800 NNTP-Posting-Host: 62.253.132.124 X-Complaints-To: abuse@ntlworld.com X-Trace: news11-gui.server.ntli.net 982370577 62.253.132.124 (Sat, 17 Feb 2001 00:42:57 GMT) NNTP-Posting-Date: Sat, 17 Feb 2001 00:42:57 GMT Organization: ntl Cablemodem News Service Xref: supernews.google.com comp.lang.ada:5317 Date: 2001-02-17T00:43:35-08:00 List-Id: Fraser Wilson wrote: > How about an image attribute that doesn't put a space in front of positive > integers. That space has always puzzled me -- it makes output of a series > of positive integers easier, but as special cases go, that's pretty special. > > Strikingly minor, but it's always bugged me. I would like to define my own function to be used by the 'Image attribute: type Complex is record Real, Imaginary : Float; end record; function Polar (X : Complex) return String; for Complex'Image use Polar; I can't see what implementation problems arise... but I'm no expert. Maybe it doesn't add enough usefulness to be worth adding though. It would simplify some of the code I write somewhat, by eliminating "Image" generic function parameters, added solely for easy debugging. -- Dr Adrian Wrigley