#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Mon, 17 Jul 2017 11:42:52 +0200
changeset 22025 5178bff40e4d
parent 22024 5ae2b815d111
child 22026 ec5d6fa4fb2c
#FEATURE by cg class: Object added: #haltIfNil comment/format in: #implementedBySubclass
Object.st
--- a/Object.st	Mon Jul 17 11:42:28 2017 +0200
+++ b/Object.st	Mon Jul 17 11:42:52 2017 +0200
@@ -3151,6 +3151,21 @@
     "Modified: / 18-11-2010 / 11:22:16 / cg"
 !
 
+haltIfNil
+    "halt if the receiver is nil"
+
+    <resource: #skipInDebuggersWalkBack>
+
+    ^ self
+
+    "
+     3 haltIfNil
+     nil haltIfNil
+    "
+
+    "Created: / 17-07-2017 / 10:51:56 / cg"
+!
+
 isBreakPointEnabled:someKey
     "{ Pragma: +optSpace }"
 
@@ -4397,11 +4412,13 @@
 implementedBySubclass
     "{ Pragma: +optSpace }"
 
-    "this is sent by ST/V code - its the same as #subclassResponsibility"
+    "this is sent by ST/V code - it's the same as #subclassResponsibility"
 
     <resource: #skipInDebuggersWalkBack>
 
     ^ SubclassResponsibilityError raiseRequestErrorString:'method must be reimplemented in ST/V subclass'
+
+    "Modified (comment): / 16-07-2017 / 11:33:50 / cg"
 !
 
 indexNotInteger