lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 28 February 2011 20:36, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:
>> The current interface invites the writing of ugly code, of incorrect
>> code (as with the mistake you make that only the first character of
>> the string will be needed by most users, when in fact you mean the
>> first line (the string is a newline-separated list of strings, not a
>> newline-separated list of characters, according to the manual)), [...]
>
> I do not know systems where the directory separator is more than
> one char long.

In that case, you could change the spec by altering the manual from:

"The first line is the directory separator string."

to

"The first character is the directory separator string."

and probably for the other entries too; and change

"This string is a sequence of lines:"

to

"This string is a sequence of characters:"

(and remove the newlines!).

That would still be weird, but it would be a distinct improvement.

-- 
http://rrt.sc3d.org