From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=3.0 tests=BAYES_50,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PDS_FROM_2_EMAILS,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:4548:: with SMTP id z8mr5610775qtn.291.1601699965904; Fri, 02 Oct 2020 21:39:25 -0700 (PDT) X-Received: by 2002:a0c:e5cf:: with SMTP id u15mr4991939qvm.24.1601699965730; Fri, 02 Oct 2020 21:39:25 -0700 (PDT) Path: 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.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: Fri, 2 Oct 2020 21:39:25 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=2601:18f:900:4870:d83b:87bf:8b88:a5d6; posting-account=3pYsyQoAAACcI-ym7XtMOI2PDU8gRZS5 NNTP-Posting-Host: 2601:18f:900:4870:d83b:87bf:8b88:a5d6 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: "subprogram must not be deeper than access type" From: "andrew...@gmail.com" Injection-Date: Sat, 03 Oct 2020 04:39:25 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60393 List-Id: Hello, I'm trying my hand at a small rosettacode.org example: https://codeshare.io/an080j What I don't understand is when I'm creating the various packages to serve as handlers, I get the following compile-time errors: gprbuild : event_handlers_window.adb:13:03: instantiation error at gtk-handlers.ads:1039 event_handlers_window.adb:13:03: subprogram must not be deeper than access type event_handlers_window.adb:14:03: instantiation error at gtk-handlers.ads:437 event_handlers_window.adb:14:03: subprogram must not be deeper than access type How am I making a subprogram deeper than an access type exactly?