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-Thread: a07f3367d7,c689b55786a9f2bd X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!o11g2000yqj.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: for S'Image use Func?? Date: Thu, 6 May 2010 10:58:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2318cabb-080c-42a0-8219-21c347abe172@o11g2000yqj.googlegroups.com> References: NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1273168726 5220 127.0.0.1 (6 May 2010 17:58:46 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 6 May 2010 17:58:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o11g2000yqj.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:11332 Date: 2010-05-06T10:58:46-07:00 List-Id: On May 6, 10:10=A0am, Warren wrote: > I have tried to google for this and have not yet found > a suitable answer, so I'll troll, er, poll for an > answer here.. > > Is there the ability to substitute your own S'Image > function? For example, a basic interpreter might > define: > > =A0type LNumber_Type is range 0..99_999; > > Can I declare.. > > =A0for LNumber_Type'Image use LNumber_To_String; No. Broadly, you can't use a FOR attribute specification on every attribute, just a few select ones that the language specifically says you can. 'Image isn't one of those. I think it's been mentioned a few times on this newsgroup that it might be nice to have this ability, but I don't see that anyone has submitted an actual language change proposal. -- Adam