Static array * scalar is not working for me

Danni Coy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jul 30 01:18:07 PDT 2017


The following code is not working for me

float[3] f;
f[] = abs(f)[] * -1.0f;
where abs is a function that returns a float[3];

it complains that f should be attached to some memory.

Is it a bug or am I missing something?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170730/fa81c8e2/attachment.html>


More information about the Digitalmars-d-learn mailing list