Move `GenericException class >> signal:` to `stx:libbasic` jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Wed, 17 Oct 2018 21:45:02 +0200
branchjv
changeset 23545 22577f834a76
parent 23406 cffed6749990
child 23546 0bb5e8a11f90
Move `GenericException class >> signal:` to `stx:libbasic` ...from `stx:libcompat` since this method is ANSI (see Section 5.5.2 of ANSI Smalltalk Spec)
GenericException.st
--- a/GenericException.st	Tue May 29 14:58:41 2018 +0200
+++ b/GenericException.st	Wed Oct 17 21:45:02 2018 +0200
@@ -214,6 +214,20 @@
     "Created: / 20-11-2006 / 14:00:09 / cg"
 !
 
+signal:messageText
+    "raise a signal proceedable or nonproceedable (whichever is right).
+     The argument is used as messageText."
+
+    <context: #return>
+
+    ^ (self newException
+                suspendedContext:thisContext sender
+                errorString:messageText)
+        raiseSignal.
+
+    "Modified: / 10-08-2010 / 09:41:56 / cg"
+!
+
 signalWith:messageText
     "raise a signal proceedable or nonproceedable (whichever is right).
      The argument is used as messageText.
@@ -2458,6 +2472,11 @@
 
 version_CVS
     ^ '$Header$'
+!
+
+version_HG
+
+    ^ '$Changeset: <not expanded> $'
 ! !