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-Received: by 2002:ac8:23e3:: with SMTP id r32mr20401117qtr.268.1587452830688; Tue, 21 Apr 2020 00:07:10 -0700 (PDT) X-Received: by 2002:aca:ad52:: with SMTP id w79mr2032572oie.122.1587452830310; Tue, 21 Apr 2020 00:07:10 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 21 Apr 2020 00:07:10 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=91.169.209.222; posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH NNTP-Posting-Host: 91.169.209.222 References: <5e956327$0$1635$e4fe514c@news.kpn.nl> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <92fe38c5-ba1d-4b26-b35b-8d74b684a2ea@googlegroups.com> Subject: Re: Put the access value From: briot.emmanuel@gmail.com Injection-Date: Tue, 21 Apr 2020 07:07:10 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:58447 Date: 2020-04-21T00:07:10-07:00 List-Id: > > In Ada, a pointer is not an integer and has no 'Image attribute. > > Sure it does. ;-) Hey, that's GNAT specific again, no other compiler implements that yet ! :-) This is very nice, indeed. We (and I would guess a lot of others) have come up with some code-generation scheme to generate those output routines for our types. We use libadalang for now (distributed with GNAT). Although our home-made solution is mode flexible (with binary or text output, for instance, as well as backward compatibility with older type definitions), having this service part of the compiler definitely removes some of the needs for custom frameworks... Some of the difficulties I had in implementing the code generation was for generics and their instances, or class-wide types. Are those handled natively by the compiler now, when using 'Image ? Thanks for letting us know Bob