我有一个特点
feature --compare
is_less alias "<" (other: MONEY): BOOLEAN
-- Is current money less than `other'?
local
temp: BOOLEAN
do
temp := cents < other.cents
Result := temp
end
它只是检查两个美分(cents < other.cents)是否大于。即使我将其设置得太真,我也无法让结果返回真:
结果 := temp -----> 结果 := true