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=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:a05:620a:570:: with SMTP id p16mr4930760qkp.396.1602866357972; Fri, 16 Oct 2020 09:39:17 -0700 (PDT) X-Received: by 2002:a0c:e5cf:: with SMTP id u15mr4492832qvm.24.1602866357840; Fri, 16 Oct 2020 09:39:17 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!peer01.ams4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 16 Oct 2020 09:39:17 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=99.10.228.144; posting-account=AgomvAoAAAAj6rtZlNDUf1S1XVXbXDpg NNTP-Posting-Host: 99.10.228.144 References: <9d822023-b604-46b1-9443-4471e095704bn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <6f14427c-15a6-4874-a3f5-7bc308b2d3bfn@googlegroups.com> Subject: Re: GDNative thick binding design From: Michael Hardeman Injection-Date: Fri, 16 Oct 2020 16:39:17 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2108 X-Received-Body-CRC: 394918317 Xref: reader02.eternal-september.org comp.lang.ada:60446 List-Id: On Friday, October 16, 2020 at 2:38:38 AM UTC-4, Luke A. Guest wrote: Thanks for the detailed reply. Unfortunately I think I didn't get my question across correctly. I'm pretty familiar with most of the basic stuff I can do in Ada. I'm not asking for general advice on making a thick binding, I'm asking for help with one specific data structure/pattern. What is the best way to make Ada types/functions that wrap a particular thing: I just pushed a work in progress branch where you can see what I'm struggling with: https://github.com/MichaelAllenHardeman/gdnative_ada/blob/feature/adventure_game/examples/adventure_game/src/engine_hooks.adb#L29 https://github.com/MichaelAllenHardeman/gdnative_ada/blob/feature/adventure_game/examples/adventure_game/src/example_object.adb#L90 Is it possible to create type (tagged record maybe) who's dispatching methods automatically register in some way?