On 22 sep 2004, at 16:07, Darek Mazur wrote:
I can't now give an exact program, but this kind of function don't make any disorder or other bad things.
The main problem is that people may expect it to return the line-endings of the text file, instead of just what you set it to be.
This is for developer, not for users ?
When I found new function, I test it and read manual. In whole FPC is many similar names of different function and nobody should think about function only from its name. Of course better is, when names are full of knowledge (I don't know how it say), but it can't be a barrier of development.
My idea: change name (settextlineending too) or make second function GetFileLineEnding to return line-endings of file.
As such, it can
cause confusion. Just like some properties of an object can be read-only, some can be write-only as well. I also can't think of any situation where you would want to write something different to the file based on the set line endings.
Jonas
_______________________________________________ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel
_______________________________________________ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel
