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: 103376,d823af2a83b09053 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!newsfeed1.ip.tiscali.net!tiscali!transit1.news.tiscali.nl!dreader2.news.tiscali.nl!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Generic type in package References: <35cullF4ivogfU1@individual.net> From: Ludovic Brenta Date: Fri, 21 Jan 2005 19:22:14 +0100 Message-ID: <87ekgeve09.fsf@insalien.org> User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:ZNueoVqz77VnIPlx7zKljWrjSxA= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Tiscali bv NNTP-Posting-Date: 21 Jan 2005 19:22:14 CET NNTP-Posting-Host: 83.134.240.184 X-Trace: 1106331734 dreader2.news.tiscali.nl 44083 83.134.240.184:41391 X-Complaints-To: abuse@tiscali.nl Xref: g2news1.google.com comp.lang.ada:7932 Date: 2005-01-21T19:22:14+01:00 List-Id: Stefan Merwitz writes: > Hello, > > I've seen the following type definition in a package-file (ads): > > generic > type T is (<>); > > this seems to allow comparing (smaller, greater or equal) of the type > T. But I did not find this type definition ("(<>") in the Ada > documentation. What are the differences to limited private and does > this constrict the usable data types for T? > > > Thanks in advance, > > Stefan It means that T must be a discrete type: either an enumeration, a range, or a modular type. See ARM 12.5.2 and 3.2(12). HTH -- Ludovic Brenta.