Index: doc/tutorial2.html =================================================================== diff -u -rbe3ba45f303ed61511b034e73e0bba5d10d10982 -rf934951db464db1a6f39ac98290ecde17a466cd7 --- doc/tutorial2.html (.../tutorial2.html) (revision be3ba45f303ed61511b034e73e0bba5d10d10982) +++ doc/tutorial2.html (.../tutorial2.html) (revision f934951db464db1a6f39ac98290ecde17a466cd7) @@ -441,9 +441,9 @@ Stack empty! -Note that the definition of Saftey can be used not only for instances +Note that the definition of Safety can be used not only for instances of the class Stack, but for arbitrary objects supporting the -same interface. We can as well use Saftey to create a new +same interface. We can as well use Safety to create a new class SafeStack. In this case, all instances of SafeStack have the safety property defined above. @@ -592,12 +592,12 @@
   SoccerTeam method newPlayer args {
     # we create a new player who is part of the soccer team
-    # "eval" is needed to pass the provided arguments seperately to the call of new
+    # "eval" is needed to pass the provided arguments separately to the call of new
     eval Player new -childof [self] $args
   }
 

-A player can be transfered to another team. The player object does +A player can be transferred to another team. The player object does not change internally (e.g. the playerRole stays the same). Therefore we move it to the destination team.

@@ -609,7 +609,7 @@ # But we only remove matching playernames of type "Player". We do # not want to remove another club member type who has the same # name. - if{[$player info is type Player] && [$player name] eq $playername} { + if{[$player info has type Player] && [$player name] eq $playername} { # We simply 'move' the player object to the destination team. # Again we use a unique autoname in the new scope $player move ${destinationTeam}::[$destinationTeam autoname player%02d] @@ -629,7 +629,7 @@ SoccerTeam method printPlayers {} { puts "Players of ${:name}:" foreach m [:info children] { - if {[$m info is type Player]} {puts " [$m name]"} + if {[$m info has type Player]} {puts " [$m name]"} } } @@ -776,7 +776,7 @@
   Class TransferObserver {
     :method transferPlayer {pname destinationTeam} {
-      puts "Player '$pname' is transfered to Team '[$destinationTeam name]'"
+      puts "Player '$pname' is transferred to Team '[$destinationTeam name]'"
       next
     }
   }
@@ -920,7 +920,7 @@
 intrinsic changes of object properties (in contrast to extrinsic
 properties e.g. modeled through roles and implemented through
 per-object and per-class mixins [Neumann and
-Zdun 1999c] ) . These changes can be achieved without loosing the
+Zdun 1999c] ) . These changes can be achieved without losing the
 object's identity, its inner state, and its per-object behavior (methods
 and mixins).
 

@@ -1816,7 +1816,7 @@ dynamics is the changing of the relationship between object and class. This means, objects can also change their class dynamically at run-time. This feature may be used to model a life-cycle of an object, -without loosing the object's identity, inner state or +without losing the object's identity, inner state or per-object-specializations through procs. The class instance method enables this functionality.