On Friday, 20 April 2018 at 16:03:40 UTC, jmh530 wrote:
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote:
[...]
I was experimenting with one of the open methods matrix
examples [1] and trying to replace the virtual methods with
templates. My example [3] does it statically and with structs
so that it could be used with mir. However, the moment you try
to make it a little bit more complicated and allow the type of
the underlying matrix data to be templated, then it hits up
against this issue and you can't rely on aliases any more.
I would support a DIP.
[1]
https://github.com/jll63/openmethods.d/tree/master/examples/matrix/source
[2]
http://www.di.unipi.it/~nids/docs/templates_vs_inheritance.html
[3] https://run.dlang.io/gist/9da210e321af95e1ce373b5a6621e4f8
Sorry, the stupid thing keeps telling me it's down for
maintenance.