- 動的言語で大規模開発
798 :デフォルトの名無しさん[sage]:2014/12/07(日) 19:37:57.79 ID:eR9x6pgx - >>797
なるほどティモシー・バットの実装・主張でしたか。 Smalltalkの常識が役に立たないわけです。^^; 本家Smalltalk(の、ごく初期の実装であるSmalltalk-72)からある Streamと彼の言うジェネレータとの関係は、 彼のかなり風変わりなSmalltalk実装であるLittle Smalltalkに ついて書かれた書籍にその記述が見つけられました。 http://sdmeta.gforge.inria.fr/FreeBooks/LittleSmalltalk/ALittleSmalltalk.pdf In the Smalltalk-80 language (Goldberg83), the concept of streams is in many ways similar to the idea of generators. For the most part, streams use a slightly different interface, namely the pair of messages reset (which initializes the generator but does not return any value) and next (which is used for both the first and all succeeding elements). The message do: is adapted from the streams of (Goldberg83). An article by Deutsch (Byte 81) discusses in more detail many aspects of generators in the Smalltalk 80 system. ありがとうございます。 あと老婆心ながら、パッドがSmalltalkについて書くときは、 暗黙のうちに彼独自仕様のLittle Smalltalkを前提にしている ことがあるので、そこから得た知識をSmalltalkに一般化したり、 あるいは狭義には本家PARC謹製実装を指す「Smalltalk-80」という 呼称でそれを語るのは、聞き手に無用の混乱を招くので 今後は避けられた方がよいと思います。
|