>>>>> "Egor" == Egor Skriptunoff <egor.skriptunoff@gmail.com> writes: Egor> I suggest to replace "toclose" and "__close" with more expressive Egor> words: Egor> local <resource> x = setmetatable(obj, {__release = ...}) +1 -- Andrew.