Category:Smalltalk: Difference between revisions

Line 300:
16rFF00 "integer constant, base 16"
 
2r101010 "integer constant, binary base 2"
 
3r1210210 "integer constant, ternary base 3"
 
1.234 "float constant; an instance of Float"
Line 312:
(1/7) "fraction constant; an instance of Fraction"
 
123s3 "scaled decimal constant with precision (somewhat dialect specific [1])"
 
(1+5i) "a complex"
Line 337:
#[ 10 20 2r1000 16rFE ] "byte-array constant; an instance of ByteArray"
 
#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)"
 
[:a1 ... :aN | ... some code ...] "a block literal with arguments."</lang>
 
1) not supported by all dialects.
1) not supported by all dialects. If missing in a particular dialect, a Parser extension is required.
 
===Special "builtin" Pseudo Veriables===
Anonymous user