Postby hippy » Feb 27, 2006 17:22
I've often thought just how nice it would be if files, web pages, email and even newsgroups could be read, uploaded and downloaded over the net that easily.
When reading, the OPEN downloads the file and could throw a File Not Found or other error and then reading could come from a temporary file. Writing would be to a temporary file and on CLOSE the upload would automatically happen, and throw errors then if it fails.
I think there is an argument to be able to overload or vector OPEN and CLOSE to allow such things to be done, and while I can see the reasoning for FB having moved from OPEN "COM1:..." to OPEN COM etc, I'd much prefer to see a language which allowed the file spec to determine what needs to be done.
The argument against is that massive runtime support has to be included in an executable which more often than not isn't needed. I'm sure there would be a way to allow the user to specify what runtime support was included at compile/link time and the availability of runtime support could be checked when OPEN etc is called with minimal overhead. That would give the best of both worlds.