In our previous episode, Hans-Peter Diettrich said:
> > Doesn't that depend on filemode? I see a lot of places in the compiler where
> > it is read/changed/preserved:
> [...]
> > None of them in options. So there could be something to it, specially since
> > it is so early in the startup.
> 
> IMO we should add an (optional?) filemode parameter to the old style 
> file procedures, so that every file can be opened with the appropriate 
> settings and without affecting other files.

We still have to support the filemode var out of compatibility. 

So I'm not exactly sure what you are proposing.

Do you mean you want a kind file I/O wrappers somewhere to avoid this in new
code?  Then there is no reason to use mutate the existing routines, just
write a new unit.


_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to