How can I use UFCS for a loop
Tim
tim.oliver at tutanota.com
Tue Jan 26 02:19:10 UTC 2021
On Tuesday, 26 January 2021 at 01:38:45 UTC, Q. Schroll wrote:
> On Tuesday, 26 January 2021 at 00:47:09 UTC, Tim wrote:
>> Hi all,
>>
>> How can I change the following to a more D-like approach by
>> using UFCS?
>>
>>>double[3] result;
>
> Unless you have a good reason, use a slice and not a static
> array:
>
> double[] result;
>
> The result of std.array.array will be a slice anyway.
Why would I need to use a slice instead of a static array? I'm
using a static array in this instance because I have and
underlying 3d vector with double[3] as its base type
More information about the Digitalmars-d-learn
mailing list