On Thursday, 3 August 2017 at 04:40:05 UTC, Matt wrote:
Also note, one of the main advantages of Eigen is the whole lazy evaluation of expressions for compound operations.

I haven't dug in the source, but it's my understanding it's done through a lot of compile time C++ template hacking

Note that D provides

    __traits(isRef, Symbol)

which can be used to convenient implement lazy-evaluated expressions with free functions. Note that it cannot currently be used to check whether `this` was passed as an l-value or r-value which prevents the C++-expression-template-pattern from being used in operator overloading.

For details see: https://issues.dlang.org/show_bug.cgi?id=17734

Reply via email to