https://issues.dlang.org/show_bug.cgi?id=1023
Dmitry Olshansky <dmitry.o...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |dmitry.o...@gmail.com Resolution|--- |WORKSFORME --- Comment #8 from Dmitry Olshansky <dmitry.o...@gmail.com> --- > An enumeration of the methods of the struct would also be nice. __trait(getMembers, ...) Far as duck typing goes, this may produce a DIP on compile-time interfaces (a-la concepts). And we have had good library solutions that check all of boxes for a long time now, see: https://github.com/atilaneves/concepts Which has `models` UDA to check if struct follows interface statically. --