最近我開始學習iolanguage。當試圖走出「方法」消息,我寫道:iolanguage getSlot不返回預期的對象
Io> f := method(getSlot("f"))
==> method(
getSlot("f")
)
Io> slotSummary
==> Object_0x97f41a8:
Lobby = Object_0x97f41a8
Protos = Object_0x97f4090
_ = nil
exit = method(...)
f = method(...)
forward = method(...)
set_ = method(...)
Io> f
==> nil
但爲什麼打電話到f將返回零而不是「F」本身?