On Wed, Mar 24, 2004 at 10:58:11AM -0800, Brent 'Dax' Royal-Gordon wrote: > Dan Sugalski wrote: > >At the moment I'm thinking of the load path as an array of subs that get > >passed in the file being looked for and return... something. I'm not > >sure what, though. > > Filehandles, I think. The most common case is opening a file (or > socket, or pipe, or other sort of file-like stream) and reading the > module out of there, and we can always provide a fake "string as > filehandle" PMC.
I'm not really up on how parrot file handles work. Is it possible to insert data manipulation layers on top of the file handle without the consumer of the data needing to be aware of them? The usual one I end up being interested in is can I decompress data coming through the file handle. If the load routine is able to do "whatever" and return a file handle that might have 1 or more transformation layers on it, then I think it covers most possibilities. Nicholas Clark