Re: understanding std.algorithm.mutation.fill behaivor.

2016-12-29 Thread LeqxLeqx via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 08:27:29 UTC, abad wrote: On Wednesday, 28 December 2016 at 08:10:41 UTC, Nemanja Boric wrote: On Wednesday, 28 December 2016 at 05:09:34 UTC, LeqxLeqx wrote: Perhaps this is a stupid question, and I apologize if it is, but why doesn't this compile: import

Re: understanding std.algorithm.mutation.fill behaivor.

2016-12-28 Thread abad via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 08:10:41 UTC, Nemanja Boric wrote: On Wednesday, 28 December 2016 at 05:09:34 UTC, LeqxLeqx wrote: Perhaps this is a stupid question, and I apologize if it is, but why doesn't this compile: import std.algorithm; import std.stdio; void main() {

Re: understanding std.algorithm.mutation.fill behaivor.

2016-12-28 Thread Nemanja Boric via Digitalmars-d-learn
On Wednesday, 28 December 2016 at 05:09:34 UTC, LeqxLeqx wrote: Perhaps this is a stupid question, and I apologize if it is, but why doesn't this compile: import std.algorithm; import std.stdio; void main() { char[] array = [1, 2, 3, 4]; char value = 2; fil

understanding std.algorithm.mutation.fill behaivor.

2016-12-27 Thread LeqxLeqx via Digitalmars-d-learn
Perhaps this is a stupid question, and I apologize if it is, but why doesn't this compile: import std.algorithm; import std.stdio; void main() { char[] array = [1, 2, 3, 4]; char value = 2; fill(array, value); } if this does: import std.algorithm; im