[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why should not toclose be the default?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sun, 23 Jun 2019 14:19:54 +0200
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.