howl.ui.MenuPopup
(resource management)
items = {'one', 'two', 'three'}
popups are collected as they should
o = MenuPopup items, (->)
list = setmetatable {o}, __mode: 'v'
o\destroy!
o = nil
collectgarbage!
assert.is_nil list[1]
items = {'one', 'two', 'three'}
o = MenuPopup items, (->)
list = setmetatable {o}, __mode: 'v'
o\destroy!
o = nil
collectgarbage!
assert.is_nil list[1]