Discussion Thread: DIP 1040--Copying, Moving, and Forwarding--Community Review Round 1

jmh530 john.michael.hall at gmail.com
Tue Mar 16 17:44:08 UTC 2021


On Tuesday, 16 March 2021 at 16:55:47 UTC, bachmeier wrote:
> [snip]
>
> If you're calling into a C library for matrix operations, but 
> you have three or more strategies for allocating the underlying 
> memory, alias this is reasonable. Otherwise you're writing 
> *extremely* verbose code or you need to engage in extraordinary 
> code duplication or you're writing a bunch of ugly generic code 
> that sits on top of the C library. alias this is a clean, 
> trivial solution in this case.

Generic code that sits on top of the C library sounds like the 
most common solution to me. You can go a long way with a generic 
library on top of a C library. Lots of generic libraries end up 
calling BLAS/LAPACK.

Regardless, the burden is on those opposed to alias this to 
provide a solution.


More information about the Digitalmars-d mailing list