> I am trying to make good use of Generic Interfaces, but can't figure out
if its at all possible to delegate calls up the struct inheritance chain.
So, something like `call-next`
If I understand you correctly, "define/generic" let you do this. See
https://docs.racket-lang.org/reference/struct-
> On Mar 21, 2019, at 9:55 AM, Kees-Jochem Wehrmeijer wrote:
>
> It does? That sounds interesting. Do you have an example of that, or could
> you point me to some docs? I thought object methods were called with send or
> send-generic.
Yes, you can attach generic interfaces to classes. Techn
>
> object system (which also cooperates with generics)
TBH I've been avoiding Racket object system since my needs are typically
limited and don't call for full blown OOP. I only casually looked at what
its capable of, I guess may need to revisit. I was rather hoping for
something as simple a
> (which also cooperates with generics)
>
> It does? That sounds interesting. Do you have an example of that, or could
you point me to some docs? I thought object methods were called with send
or send-generic.
--
You received this message because you are subscribed to the Google Groups
"Ra
> On Mar 20, 2019, at 7:09 AM, zeRusski wrote:
>
> Both implement the same generic interface. Far as I can tell dispatch will
> choose marlin's implementation on that kind of instance. Is there a way for
> me to delegate to fish's method from inside marlin's method with the same
> name? I ca
Hi all.
I am trying to make good use of Generic Interfaces, but can't figure out if
its at all possible to delegate calls up the struct inheritance chain. So,
something like `call-next`, or even better maybe there's a way to do
explicit dispatch? So something like having two structs:
(struct f
6 matches
Mail list logo