tardy v0.0.1 - Runtime polymorphism without inheritance

jmh530 john.michael.hall at gmail.com
Sat Jun 13 16:15:49 UTC 2020


On Saturday, 13 June 2020 at 15:11:49 UTC, Atila Neves wrote:
> https://code.dlang.org/packages/tardy
> https://github.com/atilaneves/tardy
>
> [snip]

This is pretty cool. Thanks for sharing.

I have a few questions/comments:

1) It might make a good blog post at some point to discuss this 
and the performance (perhaps with reference to the earlier open 
methods blog post).
2) It looks like Polymorphic can only take one interface. Would 
you consider adding the ability to have more than one? I suppose 
a work-around would be to combine all the interfaces you would 
want to use into a new interface before combining.
3) Do arrays work, as in Transformer(Adder(2), Plus1()) or 
[Transformer(Adder(2)), Transformer(Plus1())]



More information about the Digitalmars-d-announce mailing list