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-Thread: a07f3367d7,556e5b18154df788 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit X-Received: by 10.224.185.201 with SMTP id cp9mr2262644qab.6.1364568884628; Fri, 29 Mar 2013 07:54:44 -0700 (PDT) X-Received: by 10.50.150.166 with SMTP id uj6mr241457igb.1.1364568884580; Fri, 29 Mar 2013 07:54:44 -0700 (PDT) Path: v17ni9qad.0!nntp.google.com!ca1no16278424qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 29 Mar 2013 07:54:44 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=69.20.190.126; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 69.20.190.126 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <615039cc-f33b-486a-b242-2c87292271d6@googlegroups.com> Subject: Re: Interresting, possibly buggy behavior in GNAT generics w/ expression function. From: Shark8 Injection-Date: Fri, 29 Mar 2013 14:54:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2013-03-29T07:54:44-07:00 List-Id: On Friday, March 29, 2013 8:47:36 AM UTC-6, Simon Wright wrote: > Shark8 writes: > > > > > Function Image(Value : Positive) Return String is > > > ( --if Value not in positive then "" else > > > Units.Constant_Reference( Attribute_Units, Value ) ); > > > > Or, of course, Attribute_Units (Value) ! That doesn't work. That I'm pretty sure is a bug; in any case at least the [compile-time] error it gives is utterly useless: generic_attribute_set.ads:36:07: "" is undefined