> The biggest problem would be that it would have to either be a new type or a > flag in T_STRING type... the flag would be okay but to do things cleanly > without GCing the open fd, the object would have to reference the source > file descriptor (err, File object), and there is no room left without > bumping the size of RStructures in general. > If it were to be a new type, all checks for T_STRING would have to be > changed to check for T_STRING or T_MMAPSTRING... all in all, I have no idea > how I would properly implement it, but had I any good idea how I would do it > :) Implement an MMap segment as a distinct object class. It should have the interface of an Array of bytes, and/or of a File. matju