[fpc-devel]const sLineBreak

Darek Mazur darekm at emadar.com
Wed Sep 22 16:39:54 CEST 2004

Uz.ytkownik Jonas Maebe napisa?:
> 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  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel

More information about the fpc-devel mailing list