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 fish ())
(struct marlin (fancy))

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 can introduce a level of indirection and extract fish's 
implementation into a function that I could call from marlin's method but 
that feels wrong somehow. Am I asking too much from Racket generics?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to