comp.lang.ada
 help / color / mirror / Atom feed
From: Michael Hardeman <mhardeman25@gmail.com>
Subject: Re: GDNative thick binding design
Date: Tue, 20 Oct 2020 19:58:36 -0700 (PDT)	[thread overview]
Message-ID: <1f745514-0d25-439f-8872-59030515406en@googlegroups.com> (raw)
In-Reply-To: <rmcovq$ua9$1@gioia.aioe.org>

On Friday, October 16, 2020 at 2:32:30 PM UTC-4, Luke A. Guest wrote:
> On 16/10/2020 19:28, Michael Hardeman wrote: 
> 
> > But I need some way of knowing here: https://github.com/MichaelAllenHardeman/gdnative_ada/blob/feature/adventure_game/examples/adventure_game/src/engine_hooks.adb#L28
> That's what the generic constructor wouild allow.
> > what all the types that extend that object tagged type are, and what all the null methods they've chosen to override are. Kind of like the Java Class() style introspection. 
> > 
> > I'm sure there must be some way of doing it better tho, with generics? I'm just not creative enough to see the solution atm. 
> >
> You can't know what the null methods are. Why do you even need to know? 
> 
> 
> I'm probably not understanding this, tbf.

Can you explain the Generic Constructor some more? I need to use it now, but I can't exactly figure it out. I found this example: https://www.adacore.com/gems/ada-gem-19 but I have no idea how they can use the 'Input attribute as the constructor function. It doesn't match the signature requested by the generic at all.

I have a simple example I was trying to get working: https://ideone.com/f5bpr9
Do you think you could help me understand where I'm going wrong here?

  reply	other threads:[~2020-10-21  2:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 21:08 GDNative thick binding design Michael Hardeman
2020-10-16  6:38 ` Luke A. Guest
2020-10-16 16:39   ` Michael Hardeman
2020-10-16 18:09     ` Luke A. Guest
2020-10-16 18:28       ` Michael Hardeman
2020-10-16 18:31         ` Luke A. Guest
2020-10-21  2:58           ` Michael Hardeman [this message]
2020-10-21  6:59             ` Luke A. Guest
2020-10-21 22:08               ` Michael Hardeman
2020-10-21 23:22                 ` Luke A. Guest
2020-10-26  3:38                   ` Michael Hardeman
2020-10-26  5:41                     ` Per Sandberg
2020-10-26 13:53                       ` Michael Hardeman
2020-10-27  3:34                         ` Michael Hardeman
2020-10-17 10:09         ` AdaMagica
2020-10-18 20:21 ` Per Sandberg
2020-10-21  3:34   ` Michael Hardeman
2020-10-21 16:16     ` Per Sandberg
2020-10-21 22:48       ` Michael Hardeman
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox