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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cc1e953080a23a59,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!t54g2000hsg.googlegroups.com!not-for-mail From: Maciej Sobczak Newsgroups: comp.lang.ada Subject: Generic formals - meanings and Wikibook suggestion Date: Mon, 7 Apr 2008 02:25:06 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 128.141.45.242 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1207560327 2378 127.0.0.1 (7 Apr 2008 09:25:27 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Apr 2008 09:25:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t54g2000hsg.googlegroups.com; posting-host=128.141.45.242; posting-account=bMuEOQoAAACUUr_ghL3RBIi5neBZ5w_S User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:20859 Date: 2008-04-07T02:25:06-07:00 List-Id: The following table: http://en.wikibooks.org/wiki/Ada_Programming/Generics#Generic_formal_types is extremely useful with generics and provides invaluable help when writing or reading generic code. (another way of putting it is that the syntax for generics is just broken ;-) ) What is missing from this table is the full meaning of the basic: type T is private; This basic form is used in many places - even on the same Wikibook page. What is the exact meaning of this basic form? What knowledge about T is expressed this way? >From AARM I conclude that it covers all non-limited types, but Wikibook provides the same description (second row in the table) for: type T (<>) is private; Is there any difference between the two? (hint: add the basic form to the same table in the Wikibook?) -- Maciej Sobczak * www.msobczak.com * www.inspirel.com