lua-users home
lua-l archive

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

Roberto Ierusalimschy <> writes:
>> > function myloadfile(filename, env)
>> >   return load(io.lines(filename, '*L'), filename, 't', env)
>> > end
>> Hmm, I expect that's not very efficient for extremely large files
>> though... (even read"*a" is horrible for extremely large files!)
>   return load(io.lines(filename, 2^12), filename, 't', env)
> seems reasonable.

So is there a reason you guys just don't have an extra two arguments for
loadfilename, which are passed straight through to the underlying call
to load?  It would be trivial to implement, and handy -- and make the
interface much less clumsy.


Do not taunt Happy Fun Ball.