Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake wrong forum. this is for d. learn. Also you posted the text in the title.
Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake For everyone's sanity: https://run.dlang.io/is/bjlaNy
Re: import std.stdio; void main() { size_t count; bool[8191] flags; writeln("10 iterations"); // using iter as a throwaway variable foreach (iter; 1 .. 11) { count = 0; flags[] = 1
On Tuesday, 1 August 2017 at 14:08:26 UTC, enter per ner wrote: whats the mistake you are passing a ptr to writefln.