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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!news.snarked.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: What exactly is the licensing situation with GNAT? Date: Sat, 15 Nov 2014 10:18:23 +0100 Organization: cbb software GmbH Message-ID: References: <22a3816a-4e89-48f0-a126-dce581781beb@googlegroups.com> <084b1934-9641-425e-85ec-293e0334413e@googlegroups.com> <86bf69c8-eb08-4696-b6c9-3784f5c42213@googlegroups.com> <87389olqie.fsf@ixod.org> <19fa65d4-72c9-44ab-b44b-4ea0929c18f2@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: wfRpp7ltpEWhI2na6kgpfA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: number.nntp.giganews.com comp.lang.ada:190660 Date: 2014-11-15T10:18:23+01:00 List-Id: On Fri, 14 Nov 2014 16:24:14 -0600, Randy Brukardt wrote: > OTOH, I don't see why this would be any different than access types > vis-a-vis interfacing with C and the like. The type would have a > representation (likely one similar to access-to-subprogram), and that's the > problem for 'Unrestricted_Access - it needs a different representation to > support 'Unrestricted_Access from 'Access. And the representation needed for > 'Unrestricted_Access is incompatible with C (other than on GCC, which is > unusual). If you simply allowed any subprogram to match a subprogram type, > you couldn't allow interface to C. Or you'd have to have an accessibility > check on the use only for interface to C. Or some other messy rule - would > not gain anything. Except that whatever checks needed they will not include pointer checks. If a nested subprogram cannot be passed to C, then it cannot. But the reason shall not be accessibility pointer check. The only reason allowed is "cannot implement pragma Convention". -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de