2008-07-08から1日間の記事一覧

継承とは(修正)

継承 When an object receives a message it looks for a matching slot, if not found, the lookup continues depth first recursively in its protos. Lookup loops are detected (at runtime) and avoided. If the matching slot contains an activatable…

多重継承とは(修正)

多重継承 You can add any number of protos to an object's protos list. When responding to a message, the lookup mechanism does a depth first search of the proto chain. Io プログラミングガイド - オブジェクト - 多重継承 多重継承 あるオブジェ…

JavaでIoの構造っぽいものを(超簡単に)書いてみる

超簡単に、ですよ。循環継承はループから抜け出せませんので。オブジェクトには、slotマップとprotosリストがあって、slotでそのオブジェクトが独自に持つデータを管理し、protosでそのオブジェクトの親オブジェクトを管理する。slotが呼ばれた場合、自分のs…

静的って書こうとすると

性的って変換されることが多いんですが、これって俺だけでしょうか? 「性的オブジェクト」を何度修正したことかww