Category:Smalltalk: Difference between revisions
Content added Content deleted
Line 300: | Line 300: | ||
16rFF00 "integer constant, base 16" |
16rFF00 "integer constant, base 16" |
||
2r101010 "integer constant, base 2" |
2r101010 "integer constant, binary base 2" |
||
3r1210210 "integer constant, base 3" |
3r1210210 "integer constant, ternary base 3" |
||
1.234 "float constant; an instance of Float" |
1.234 "float constant; an instance of Float" |
||
Line 312: | Line 312: | ||
(1/7) "fraction constant; an instance of Fraction" |
(1/7) "fraction constant; an instance of Fraction" |
||
123s3 "scaled decimal constant with precision (somewhat dialect specific)" |
123s3 "scaled decimal constant with precision (somewhat dialect specific [1])" |
||
(1+5i) "a complex" |
(1+5i) "a complex" |
||
Line 337: | Line 337: | ||
#[ 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 (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 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> |
||
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=== |
===Special "builtin" Pseudo Veriables=== |