Re: [ooc-compiler] File modes in module Files
Brought to you by:
mva
|
From: August K. <fus...@co...> - 2005-10-17 12:21:35
|
Michael van Acken wrote: > On 17/10/05, August Karlstrom <fus...@co...> wrote: >>In the module Files, what values does the parameter `flags' in the >>procedures New, Old and Tmp accept? > > > read* = 0; > (* If the file cannot be opened for reading access, then it isn't opened > at all. In this case the error code is set to `noReadAccess'. *) > write* = 1; > (* If the file cannot be opened for writing access, then it isn't opened > at all. In this case the error code is set to `noWriteAccess'. *) > tryRead* = 2; > (* Try to open this file for reading access. If the file permissions > don't permit reading the file is opened nevertheless, but the file > descriptor's attribute `File.readable' is set to `FALSE'. *) > tryWrite* = 3; > (* Try to open this file for writing access. If the file permissions > don't permit writing the file is opened nevertheless, but the file > descriptor's attribute `File.writable' is set to `FALSE'. *) OK, thanks. Maybe your detailed explanations above should be added to the module documentation. I also think the values need to be mentioned in the documentation of New, Old and Tmp. The type SET alone gives no clue. Regards, August |