Category:Smalltalk: Difference between revisions

Content added Content deleted
Line 338: Line 338:
#[ 10 20 2r1000 16rFE ] "byte-array constant; an instance of ByteArray"
#[ 10 20 2r1000 16rFE ] "byte-array constant; an instance of ByteArray"


#f32[ 10.0 20.0 ] "float32-array constant; an instance of FloatArray ¹"
#f32( 10.0 20.0 ) "float32-array constant; an instance of FloatArray ¹"


[ ... some code ... ] "a block literal; an instance of BlockClosure (dialect specific); the object represents the piece of code which can be passed around and evaluated later (a lambda closure)"
[ ... 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)"


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