[Issue 9501] Struct std.mmfile.MmFile?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 12 18:19:09 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9501



--- Comment #2 from bearophile_hugs at eml.cc 2013-02-12 18:19:08 PST ---
(In reply to comment #1)
> Yes, std.mmfile.MmFile should be a struct. It doesn't use polymorphism and has
> no need to be a class.

And maybe it doesn't have an explicit close() method, I don't know why, maybe
for safety in accessing the memory mapped bytes.


> But making it a struct would break all code that uses
> it, so we're arguably stuck with it being the way that it is.

There are always acceptable deprecation paths, if we want them. Like adding the
struct to std.mmfile with another name ("RcMmFile"?) and deprecating
std.mmfile.MmFile for two years.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list