Why does readln include the line terminator?

Manfred Nowak svv1999 at hotmail.com
Tue Apr 14 07:01:52 PDT 2009


Georg Wrede wrote:

> because to do anything useful with a string, you have to strip the
> terminator

This is false in case of simple copying. And I doubt, that for more 
complex operations splitting `readln' into `readlnBody' and 
`readlnEOL' and calling them intermittent would be of any benefit.

-manfred 




More information about the Digitalmars-d mailing list