Category:Smalltalk: Difference between revisions

Content added Content deleted
Line 339: Line 339:
#f32( 10.0 20.0 ) "float32-array constant; an instance of FloatArray (dialect specific [1])"
#f32( 10.0 20.0 ) "float32-array constant; an instance of FloatArray (dialect specific [1])"


[ ... some code ... ] "a block literal; an instance of BlockClosure (name is dialect specific); the object represents the piece of code which can be passed around and evaluated later (a lambda closure)"
[ ... some code ... ] "a block; an instance of BlockClosure (name is dialect specific);
the object represents the piece of code which can be passed around
and evaluated later (also known as 'lambda closure')"


[:a1 ... :aN | ... some code ...] "a block literal with arguments."</lang>
[:a1 ... :aN | ... some code ...] "a block with arguments."</lang>


1) not supported by all dialects. If missing in a particular dialect, a Parser extension is required.
1) not supported by all dialects. If missing in a particular dialect, a Parser extension is required.