Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
" Class "
|
||||
MyClass selector: someArgument .
|
||||
" or equivalently "
|
||||
foo := MyClass .
|
||||
foo selector: someArgument.
|
||||
|
||||
" Instance "
|
||||
myInstance selector: someArgument.
|
||||
|
||||
" Message with multiple arguments "
|
||||
myInstance fooWithRed:arg1 green:arg2 blue:arg3 .
|
||||
|
||||
" Message with no arguments "
|
||||
myInstance selector.
|
||||
|
||||
" Binary (operator) message"
|
||||
myInstance + argument .
|
||||
|
|
@ -0,0 +1 @@
|
|||
theCar := (someCondition ifTrue:[ Ford ] ifFalse: [ Jaguar ]) new.
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
whichMessage := #( #'red' #'green' #'blue') at: computedIndex.
|
||||
foo perform: whichMessage
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
theMessage := ('handleFileType' , suffix) asSymbol.
|
||||
foo perform: theMessage.
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
foo perform: theMessage
|
||||
] on: MessageNotUnderstood do:[
|
||||
Dialog information: 'sorry'
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue