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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,685d80ec307a0c X-Google-Attributes: gid103376,public From: Philippe Torres Subject: Re: use of attribute Pos Date: 2000/10/12 Message-ID: <39E60A42.BCF2F741@laas.fr>#1/1 X-Deja-AN: 680689819 Content-Transfer-Encoding: 7bit References: <39E4A08D.B454CB1C@laas.fr> <39E583F7.A971C8DB@laas.fr> <5DiF5.1987$tN5.213230@nnrp2.sbc.net> <39E5DE79.F61616EC@laas.fr> <39E5EBED.170B7E46@averstar.com> <8s4v1s$1gj$1@news.huji.ac.il> X-Accept-Language: fr-FR,en Content-Type: text/plain; charset=us-ascii X-Complaints-To: postmaster@cict.fr X-Trace: news.cict.fr 971377218 2186 140.93.144.128 (12 Oct 2000 19:00:18 GMT) Organization: Inconnue Mime-Version: 1.0 NNTP-Posting-Date: 12 Oct 2000 19:00:18 GMT Newsgroups: comp.lang.ada Date: 2000-10-12T19:00:18+00:00 List-Id: Ehud Lamm wrote: > > Tucker Taft wrote in message > > Some attributes are type-related, and others are > > subtype-specific. 'First and 'Last are subtype-specific, > > whereas 'Pos, 'Image, (and all the attributes that are > > functions) are type-related. > > > > To make things even more intersting for first time users of the language, an > attribute can mean sometinhg different when applied to a TYPE and to > VARIABLE. > V'frist means something different than T'first (V=VAR, T=TYPE). > I found a very useful reference card which sums up all the attributes for subtypes, tasks, records, objects,... and to avoid confusions the 2 cases are separated : (discriminated type or array)'First : Lower bound of first index of [constrained] array type (subtype)'First : Lower bound of the range of scalar subtype All in all, almost 100 attributes and/or using conditions are listed. I guess they are very useful when you are accustomed to them but i'm in quite a fight right now. Thanks to all of you for your time and to pukite@diana.com for that card. Philippe