Call a function on an entire slice

ixid nuaccount at gmail.com
Sat Sep 1 07:21:51 PDT 2012


>Because the built-in arithmetic vector operators are supported 
>by hardware.

Should that matter from a user's point of view? It's a clean 
syntax that should be made more univeral. It'd be nice to be able 
to do things like:

return a[] + b[];

and using that in lambdas as well without needing the unnecessary 
repetition of

return a[] = a[] + b[];


More information about the Digitalmars-d-learn mailing list