lua-users home
lua-l archive

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


> Perhaps of interest as well, in 5.2, the load() function accepts an iterator, so the above can be rewritten as follow:
> 
> local aChunk = assert( load( function() return aFile:read( 65536 ) end ) )

This already works in 5.1.