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 X-Received: by 2002:a24:444f:: with SMTP id o76-v6mr4333009ita.3.1539610957405; Mon, 15 Oct 2018 06:42:37 -0700 (PDT) X-Received: by 2002:aca:fdc7:: with SMTP id b190-v6mr295775oii.3.1539610957249; Mon, 15 Oct 2018 06:42:37 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.215.MISMATCH!z5-v6no35893ite.0!news-out.google.com!n199-v6ni53itn.0!nntp.google.com!z5-v6no35891ite.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 15 Oct 2018 06:42:37 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2607:f2c0:f200:1405:440f:d5c3:e46b:1699; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 2607:f2c0:f200:1405:440f:d5c3:e46b:1699 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Least Dangerous Way to Do This ? From: patrick@spellingbeewinnars.org Injection-Date: Mon, 15 Oct 2018 13:42:37 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:54589 Date: 2018-10-15T06:42:37-07:00 List-Id: Hi Everyone Okay, don't laugh(or laugh too hard) I need to interface with automatically generated C. function pointers are represented as a pointer to a pointer to a char. This is weird but done for pointer arithmetic purposes. I have this: type pointer1 is access character ; type pointer2 is access pointer1 ; foo : pointer2 ; What do you think is the best way to assign an access to a subprogram to foo ? I realize this is really-really weird and dangerous which is why I am asking for help. -Patrick