www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - mmap (2 points)

I have two questions about mmap (MmFile):

1. Could another interface be added with both offset & size, instead of just
size?  Both should be long instead of size_t, so that 32 bit code can mmap > 2GB
files.  Mmap is very nice for big files, but is handicapped if the starting
offset cannot be specified.

2. (further out) Could the GC be made aware of mmapped areas?  It might be nicer
when slicing these areas if the MmFile object destruction was delayed until safe
(its a small burden though).

Kevin
Feb 01 2005