Float[] * Real is a Float[]?

Ali Çehreli acehreli at yahoo.com
Tue Dec 10 20:35:26 UTC 2019

On 12/10/19 11:26 AM, Adam D. Ruppe wrote:
> On Tuesday, 10 December 2019 at 19:22:01 UTC, Jonathan Levi wrote:
>> Why does this not work?
> The [] operators work in place. It doesn't create a new array, just 
> multiplies the existing elements.

Then the a[]*r syntax should not be allowed. We should be forced to write

  a[] *= r;



More information about the Digitalmars-d mailing list