std.mmfile.MmFile does not contain opDollar, so when trying to access the .length property, you get an error. E.g: import std.stdio, std.mmfile; void main() { MmFile shar = new MmFile(null, MmFile.Mode.readWrite, 10, null, 0); string output = shar[0 .. $]; } Would error due to "undefined identifier __dollar"
Pull : https://github.com/dlang/phobos/pull/6521
Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/ba8134876b17550933e7212c526fa517eb8233fd [trivial] fix issue 18837 - MMFile should have opDollar https://github.com/dlang/phobos/commit/0df8d334a538e499ee30fbb57e7a0c46f3e1b0f2 Merge pull request #6521 from BBasile/issue-18837 [trivial] fix issue 18837 - MMFile should have opDollar merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>