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!mx02.eternal-september.org!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!loke.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: What exactly is the licensing situation with GNAT? Date: Thu, 13 Nov 2014 15:51:54 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <87fvdr2vdv.fsf@adaheads.sparre-andersen.dk> <54609F34.4080201@spam.spam> <35f01472-3510-4f67-8765-006fa8591c35@googlegroups.com> <9tc8w.73007$ZT5.37595@fx07.iad> <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> NNTP-Posting-Host: 24-196-82-226.static.mdsn.wi.charter.com X-Trace: loke.gir.dk 1415915515 12037 24.196.82.226 (13 Nov 2014 21:51:55 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 13 Nov 2014 21:51:55 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Xref: news.eternal-september.org comp.lang.ada:23242 Date: 2014-11-13T15:51:54-06:00 List-Id: "Georg Bauhaus" wrote in message news:m41pge$si1$1@dont-email.me... > On 13.11.14 02:49, Randy Brukardt wrote: >> My recollection is that GWindows depended on Unrestricted_Access (a huge >> amount of GNAT software does), and that really only works with the GCC >> runtime model. > > I understand ICC's compiler has (something like) Unrestricted_Access? My recollection was that ICC has it, but it only works in limited circumstances -- they couldn't implement the entire thing as supported by GNAT. > (But maybe some uses of 'Unrestricted_Access may be supplanted now > with plain access subprogram parameters of Ada 2005.) Right, there is a similarity (not 100%). For Janus/Ada, such parameters would be (if I ever got around to implementing them), a record containing roughly 20 words of memory to carry the call state. A bit expensive to initialize, but it would work (generic formal subprograms have a similar implementation, but there the memory is associated with the instance rather than the individual actual subprogram parameter). I recall Adam suggesting that some special sort of named access-to-subprogram type be defined with similar characteristics to the anonymous access-to-subprogram. Such a thing could be made to work, while the bare pointer used for normal access-to-subprogram types would not work. But of course it would be susceptible to dangling pointers, and won't (usually) be compatible with C. Randy. Randy.