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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Creating a generic package with and setting its type to that of a record Date: Thu, 29 Sep 2016 08:57:09 +0100 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="e5f31545d127a6738a4229c67d648b1c"; logging-data="29096"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+IO4aL4TvW6NwssxLQ5gtozzByrn6XCbU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) Cancel-Lock: sha1:FbQV6Xik6BF0103p4SnhIFkqzHM= sha1:Fmq8YHKGkCjYBTC7Mv58Vo9Z4FY= Xref: news.eternal-september.org comp.lang.ada:31942 Date: 2016-09-29T08:57:09+01:00 List-Id: "Randy Brukardt" writes: > "Simon Wright" wrote in message > news:ly60pg5z3x.fsf@pushface.org... > ... >> You could instantiate it for Integer, but I'm not sure what operation >> would be used if you tried "<=", for instance; the composition of >> your generic actuals, or the emergent "<=" of Integer. > > Neither. "<=" would be undefined (inside the generic) with the > specification you gave. Outside the generic, you of course would use > Integer's operators (because they're visible). You never have > visibility on formal subprograms outside of the generic (that is, via > the instance). Of course - thanks, Randy. I was confused, I suppose, by "/=" vs "=" [ARM 6.6(6)]