次の Lua コードでは:
function eq_event(op1, op2)
if op1 == op2 then
return true
end
local h = getequalhandler(op1, op2)
if h then
return not not h(op1, op2)
else
return false
end
end
なぜnot not
戻り値の前に使用するのですか? 生の戻り値とは違うのですか?また、Cでは式の前にtheを使用する機会もあったことを覚えてい!!
ますが、それらは同じですか?