#dbugfix Issue 16486 200$
jmh530
john.michael.hall at gmail.com
Fri Apr 20 16:03:40 UTC 2018
On Friday, 30 March 2018 at 06:11:22 UTC, 9il wrote:
> [snip]
>
> They are used in mir-lapack [5]. The bug fix also required for
> mir (Sparse, CompressedTensor), and for the future Dlang image
> library.
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
More information about the Digitalmars-d
mailing list