![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Messages can include arguments as well as method selectors.
In the following expression, for example, the message consists of a method
selector, raisedTo:
, and an argument, 10
:
2 raisedTo: 10
Note that the colon is part of the raisedTo:
method selector; the
colon is there to indicate that an argument is expected. Note also that
the T
is in uppercase, in accordance with the Smalltalk method
naming conventions explained in Segmentmissing reference.