








ファーストクラス・オブジェクト
first class data object。 関数などにおけるパラメータや返値として受け渡しができるデータのことをこう呼ぶ。なお、ここでいう「オブジェクト」はオブジェクト指向のオブジェクトより広い意味で、有り体にいえば単なるデータのこと。
たとえば、Smalltalk の「ブロック」はファーストクラス・オブジェクトだが、Ruby の「ブロック」は違う。Ruby では、別途用意されている手続きオブジェクト(a Proc)に暗示的、あるいは明示的に変換する必要がある。--sumim
このページを編集 (426 bytes)
 |
以下の 2 ページから参照されています。 |
- Haskell 最終更新: 2004-06-26, 19:14:32 <vc6>
- ソフトウェア配線 最終更新: 2005-01-20, 11:45:54 <61>
This page has been visited 6103 times.