August 15, 2015 Re: using memset withing a pure function | ||||
---|---|---|---|---|
| ||||
Posted in reply to anonymous | On Saturday, 15 August 2015 at 18:49:15 UTC, anonymous wrote:
> On Saturday, 15 August 2015 at 18:04:30 UTC, D_Learner wrote:
>> [...]
>
> Those two slices have different lengths (when shift != 0). They must have equal lengths, and they must not overlap.
>
> [...]
Am now sorted. Thanks, your workout simplifies everything
|
August 15, 2015 Re: using memset withing a pure function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | On Saturday, 15 August 2015 at 19:50:56 UTC, Temtaime wrote:
> There's a problem with « dst[0 .. n] = val; ».
> It should be « dst[0 .. n][] = val; »
No, you don't need the `[]`.
|
Copyright © 1999-2021 by the D Language Foundation