lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Why should not toclose be the default?
From
: Michal Kottman <k0mpjut0r@
...
>
Date
: Sun, 23 Jun 2019 14:09:13 +0200
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
Follow-Ups
:
Re: Why should not toclose be the default?
,
Dirk Laurie
References
:
Why should not toclose be the default?
,
Dirk Laurie
Prev by Date:
Re: Why should not toclose be the default?
Next by Date:
Re: Why should not toclose be the default?
Previous by thread:
Re: Why should not toclose be the default?
Next by thread:
Re: Why should not toclose be the default?
Index(es):
Date
Thread