Sujet : Re: Alan Kay on OOP
De : ram (at) *nospam* zedat.fu-berlin.de (Stefan Ram)
Groupes : comp.miscDate : 18. Mar 2025, 10:57:19
Autres entêtes
Organisation : Stefan Ram
Message-ID : <block-20250318105532@ram.dialup.fu-berlin.de>
References : 1 2 3
Salvador Mirzo <
smirzo@example.com> wrote or quoted:
Interesting. What is the class of these objects that are blocks of
code? (Thanks for the awesome example in [1].)
In Smalltalk-80 (by the Blue Book) it might be "BlockContext", see:
"Smalltalk-80, The Language and its Implementation" (1983) by Adele
Goldberg and David Robson, Part Fourt, Chapter "The Implementation",
Section "The Interpreter", side heading "Block Contexts":
|A "BlockContext" represents a block
. Is "BlockContext" a class? In
|Class BlockContext
in Part Fourt, Chapter "The Implementation", Section "Objects
used by the Interpreter", side heading "Contexts", routine
"initializeContextlndices", line 8 it seems to be called a class.
However, since this detail is part of the implementation, some
Smalltalk implementations might use a different class for blocks!