On 14 January 2012 03:42, Walter Bright <newshound2@digitalmars.com> wrote:
On 1/13/2012 3:51 PM, Andrei Alexandrescu wrote:
On 1/13/12 4:57 PM, Walter Bright wrote:
On 1/13/2012 2:31 PM, Andrei Alexandrescu wrote:
People will want to pass a variable for op. Would that work?

It'll currently fail miserably - it has to be a constant. Otherwise, we
have runtime code generation. While not impossible, it is a large
increase in scope.

Then probably the operation should be simd!opcode(arguments). If a function is
intrinsic it shouldn't have special syntactic rights.

You're right, I'm just not too thrilled about generating hundreds of template instantiations.

Is that expensive somehow?
Surely they all just boil down to a call to the intrinsic anyway?