Hello!

I started exploring D today and one of the things that caught my attention was the "array operations" feature.

While playing around and writing some code with it, I came across a problem I wasn't able to find a solution for. The following is a simple example of the assignment array operator to initialize an array.

float[10] a;
a[] = uniform(0.0f, 1.0f);

This is going to set all values to the result of a single call to uniform();

Is there a way to express my intent that I want one result per array element?

Reply via email to