tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
7
Task/Copy-a-string/Smalltalk/copy-a-string.st
Normal file
7
Task/Copy-a-string/Smalltalk/copy-a-string.st
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|s1 s2|
|
||||
"bind the var s1 to the object string on the right"
|
||||
s1 := 'i am a string'.
|
||||
"bind the var s2 to the same object..."
|
||||
s2 := s1.
|
||||
"bind s2 to a copy of the object bound to s1"
|
||||
s2 := (s1 copy).
|
||||
Loading…
Add table
Add a link
Reference in a new issue