Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
$a
|
||||
$Å
|
||||
$日
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
aBlock value. "evaluate the block, passing no argument"
|
||||
anotherBlock value:1 value:2. "evaluate the block, passing two arguments"
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
in the True class:
|
||||
ifTrue: aBlock
|
||||
^ aBlock value "I am true, so I evaluate the block"
|
||||
|
||||
in the False class:
|
||||
ifTrue: aBlock
|
||||
^ nil "I am false, so I ignore the block"
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
#{
|
||||
foo: <someConstant>
|
||||
bar: <someConstant>
|
||||
}
|
||||
11
Task/Quoting-constructs/Smalltalk/quoting-constructs-13.st
Normal file
11
Task/Quoting-constructs/Smalltalk/quoting-constructs-13.st
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#u16( 1 2 3 ). " an array of unsigned int16s "
|
||||
#u32( 1 2 3 ). " an array of unsigned int32s "
|
||||
#u64( 1 2 3 ). " an array of unsigned int64s "
|
||||
#s16( -1 2 3 ). " an array of signed int16s "
|
||||
#s32( -1 2 3 ). " an array of signed int32s "
|
||||
#s64( -1 2 3 ). " an array of signed int64s "
|
||||
#f16( -1 2.0 3 ). " an array of float16s "
|
||||
#f32( -1 2.0 3 ). " an array of float32s "
|
||||
#f64( -1 2.0 3 ). " an array of float64s "
|
||||
#b( 1 0 1 1 0 0 ). " an array of bits "
|
||||
#B( true false true true ). " an array of booleans "
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
'hello'
|
||||
'日本語
|
||||
|
|
@ -0,0 +1 @@
|
|||
c'hello\nthis\tis a C string\0x0D'
|
||||
|
|
@ -0,0 +1 @@
|
|||
e'hello world; it is now {Time now}\n'
|
||||
|
|
@ -0,0 +1 @@
|
|||
#( 1 1.234 (1/2) foo 'hello' #(9 8 7) (99 88 77) $λ '日本語' true [1 2 3] false)
|
||||
|
|
@ -0,0 +1 @@
|
|||
#[ 1 2 16rFF 2r0101010 ]
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
#'foo'
|
||||
#'foo bar baz'
|
||||
#foo. " same as #'foo' "
|
||||
#'++'
|
||||
#++ " same as #'++' "
|
||||
#a:b:c: " same as #'a:b:c:' "
|
||||
|
|
@ -0,0 +1 @@
|
|||
[ expression . expression ... expression ]
|
||||
|
|
@ -0,0 +1 @@
|
|||
[:arg1 :arg2 :... :argN | expression . expression ... expression ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue