lua-users home
lua-l archive

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

> Since the manual says that long strings "may contain anything except a
> closing bracket of the proper level" and observing that even embedded
> NUL characters are preserved, I expected embedded CRs to be as well,
> which they are, except if they're followed by a LF. So, should I
> interpret this that long strings may indeed contain anything other
> than its closing bracket, but that CR-LF sequences, while allowed, are
> lost? If so, perhaps this limitation should be stated in the manual?

Perhaps the manual could be even more rigid, stating that only text
should be used inside literal strings? Even if Lua accepts them, it
does not seem a good idea to have control characters floating in
a source file.

-- Roberto