lua-users home
lua-l archive

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


> fh:read("*l")  will apparently not return more than 1024 char.

If you're reading from the terminal, there will be a limit imposed by the OS.
See http://stackoverflow.com/questions/19421858/lua-io-read-doesnt-work-on-long-strings

> If there are more it rolls over and returns a fragment from the end of the line.

I've never seen this.

Could you post a simple program and data that exhibits this problem?

> On a related question is there a limit to the number of statements or char that loadstring() can handle?

There is a limit on the number of VM instructions generated but you're
unlikely to reach this.