primitive vector types

Chad J gamerchad at __spam.is.bad__gmail.com
Mon Feb 23 05:48:50 PST 2009


Don wrote:
> 
> So it looks to me as though with the minimal language changes, we could
> get almost complete SIMD support, with excellent syntax.
> 

enum { x=0, y=1, z=2, w=3 }
float[4] foo;
foo[x] = 42;
foo[y] = foo[x];
// etc
foo[] = [foo[y],foo[x],foo[y],foo[x]];

*grin*



More information about the Digitalmars-d mailing list