lua-users home
lua-l archive

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


Op So. 23 Jun. 2019 om 14:09 het Michal Kottman <k0mpjut0r@gmail.com> geskryf:
>
> You would need a different "keyword" to mark the intent to "leak" the resource. Hypothetical current-Lua code:
>
> function sandbox.open(filename)
>   assert(checkpath(filename))
>   local f = assert(io.open(filename))
>   -- some other processing on f
>   return f
> end

Intent to "leak"? Unless these words are unhappily chosen, it sounds
like a lurking bug factory.