MMFile usage

2022-08-03 Thread Alex Burton via Digitalmars-d-learn
Hi, I want to use MmFile to manage memory mapped files. I want multiple processes to be able to read in many files using the virtual memory system to page them in and reuse the memory. If I read the contents of the file, I can cast it to immutable and then I get segfaults when accessing the d

range algorithms on container class

2020-01-08 Thread Alex Burton via Digitalmars-d-learn
I am writing a specialised container class, and want to make it work like a normal array with range functions. After some struggle, I look at the code for std.container.array and see this comment : When using `Array` with range-based functions like those in `std.algorithm`, * `Array` must be

Re: range algorithms on container class

2020-01-14 Thread Alex Burton via Digitalmars-d-learn
On Thursday, 9 January 2020 at 10:26:07 UTC, Jonathan M Davis wrote: On Wednesday, January 8, 2020 10:56:20 PM MST rikki cattermole via Digitalmars-d-learn wrote: Slicing via the opSlice operator overload is a convention, not a requirement. It's not a requirement, but it's more than a conventi