ZeroDivide.st
author Claus Gittinger <cg@exept.de>
Tue, 02 Apr 2019 10:50:28 +0200
changeset 24034 ba4c42171801
parent 21867 35e2dfcb1e46
child 24170 09200595d6d6
permissions -rw-r--r--
#BUGFIX by cg class: CharacterArray changed: #, #asDenseUnicodeString
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7585
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     1
"
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     2
 COPYRIGHT (c) 2001 by eXept Software AG
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     3
              All Rights Reserved
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     4
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     5
 This software is furnished under a license and may be used
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     6
 only in accordance with the terms of that license and with the
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     8
 be provided or otherwise made available to, or used by, any
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
     9
 other person.  No title to or ownership of the software is
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    10
 hereby transferred.
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    11
"
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libbasic' }"
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
20458
55727803f73d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 14717
diff changeset
    14
"{ NameSpace: Smalltalk }"
55727803f73d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 14717
diff changeset
    15
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
DomainError subclass:#ZeroDivide
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    20
	category:'Kernel-Exceptions-Errors'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    23
!ZeroDivide class methodsFor:'documentation'!
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    24
7585
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    25
copyright
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    26
"
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    27
 COPYRIGHT (c) 2001 by eXept Software AG
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    28
              All Rights Reserved
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    29
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    30
 This software is furnished under a license and may be used
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    31
 only in accordance with the terms of that license and with the
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    33
 be provided or otherwise made available to, or used by, any
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    34
 other person.  No title to or ownership of the software is
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    35
 hereby transferred.
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    36
"
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    37
!
87d76b40f897 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 7584
diff changeset
    38
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    39
documentation
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    40
"
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    41
    Raised when a division by zero is attempted.
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    42
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    43
    To get the (in our oppinion: invalid) behavior of some programming languages such as JavaSript,
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    44
    which do not report division by zero exceptions,
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    45
    use the following code:
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    46
    
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    47
        ZeroDivide ignoreIn:[ x / 0.0 ] 
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    48
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    49
    i.e.    
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    50
        ZeroDivide ignoreIn:[ 1.0 / 0.0 ] 
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    51
    returns +Inf,   
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    52
    and
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    53
        ZeroDivide ignoreIn:[ -1.0 / 0.0 ] 
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
    54
    returns -Inf instead.    
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
    55
"
7584
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    56
!
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    57
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    58
examples
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    59
"
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    60
    the following leads into a debugger:
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    61
                                                                    [exBegin]
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    62
        |divisor|
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    63
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    64
        divisor := 0.
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    65
        Transcript showCR: ( 5 / divisor ).
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    66
                                                                    [exEnd]
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    67
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    68
10273
84eddf61acc5 Fix spelling in example comment
Stefan Vogel <sv@exept.de>
parents: 7585
diff changeset
    69
    the following does NOT lead into a debugger:
7584
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    70
                                                                    [exBegin]
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    71
        |divisor|
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    72
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    73
        divisor := 0.
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    74
        [
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    75
            Transcript showCR: ( 5 / divisor ).
10273
84eddf61acc5 Fix spelling in example comment
Stefan Vogel <sv@exept.de>
parents: 7585
diff changeset
    76
        ] on:ZeroDivide do:[
84eddf61acc5 Fix spelling in example comment
Stefan Vogel <sv@exept.de>
parents: 7585
diff changeset
    77
            Transcript flash.
84eddf61acc5 Fix spelling in example comment
Stefan Vogel <sv@exept.de>
parents: 7585
diff changeset
    78
        ]
7584
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
    79
                                                                    [exEnd]
21867
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    80
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    81
    the following suppresses the exception and results in NaN/Inf:
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    82
                                                                    [exBegin]
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    83
        |divisor|
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    84
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    85
        divisor := 0.
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    86
        Transcript showCR: (ZeroDivide ignoreIn:[ 5 / divisor ])
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    87
                                                                    [exEnd]
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    88
                                                                    [exBegin]
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    89
        |divisor|
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    90
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    91
        divisor := 0.
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    92
        Transcript showCR: (ZeroDivide ignoreIn:[ -5 / divisor ])
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    93
                                                                    [exEnd]
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    94
                                                                    [exBegin]
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    95
        |divisor|
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    96
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    97
        divisor := 0.
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    98
        Transcript showCR: (ZeroDivide ignoreIn:[ 0 / divisor ])
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
    99
                                                                    [exEnd]
7584
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
   100
"
6218
f528bf2bcc5f category
Claus Gittinger <cg@exept.de>
parents: 5969
diff changeset
   101
! !
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
6690
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   103
!ZeroDivide class methodsFor:'initialization'!
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   104
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   105
initialize
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   106
    NotifierString := 'division by zero'.
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   107
! !
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   108
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
!ZeroDivide methodsFor:'accessing'!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   111
defaultResumeValue
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   112
    "return +/- infinity here, if ever proceeded"
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   113
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   114
    |poorReceiver|
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   115
    
21867
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   116
    poorReceiver := self dividend.
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   117
    poorReceiver isZero ifTrue:[
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   118
        ^ poorReceiver class NaN
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   119
    ].    
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   120
    poorReceiver negative ifTrue:[
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   121
        ^ poorReceiver class negativeInfinity
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   122
    ].    
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   123
    ^ poorReceiver class infinity
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   124
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   125
    "
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   126
     |a b|
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   127
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   128
     a := 5.
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   129
     b := 0.
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   130
     ZeroDivide handle:[:ex |
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   131
        Transcript showCR:('division by zero - dividend was: ' , ex dividend printString).
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   132
        ex proceed
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   133
     ] do:[
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   134
        a / b
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   135
     ]            
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   136
    "
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   137
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   138
    "
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   139
     |a b|
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   140
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   141
     a := -5.0.
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   142
     b := 0.0.
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   143
     ZeroDivide handle:[:ex |
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   144
        Transcript showCR:('division by zero - dividend was: ' , ex dividend printString).
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   145
        ex proceed
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   146
     ] do:[
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   147
        a / b
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   148
     ]            
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   149
    "
21863
fca2a068f458 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 20458
diff changeset
   150
21867
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   151
    "Modified: / 20-06-2017 / 17:55:40 / cg"
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   152
!
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   153
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
dividend
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "Return the number that was being divided by zero."
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
5969
ed98cd153ecc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
   157
    ^ parameter receiver
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    "
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
     |a b|
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   162
     a := 5.
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   163
     b := 0.
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   164
     Integer divisionByZeroSignal handle:[:ex |
5969
ed98cd153ecc checkin from browser
Claus Gittinger <cg@exept.de>
parents: 5947
diff changeset
   165
        Transcript showCR:('division by zero - dividend was: ' , ex dividend printString)
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   166
     ] do:[
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   167
        a // b
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   168
     ]
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   169
    "
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   170
! !
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   171
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   172
!ZeroDivide class methodsFor:'documentation'!
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   173
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
version
20458
55727803f73d #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 14717
diff changeset
   175
    ^ '$Header$'
21867
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   176
!
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   177
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   178
version_CVS
35e2dfcb1e46 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 21863
diff changeset
   179
    ^ '$Header$'
5947
45351eedb5a1 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   180
! !
7584
2104df18c2af example
Claus Gittinger <cg@exept.de>
parents: 6690
diff changeset
   181
14717
8bd5b56dd171 class: ZeroDivide
Claus Gittinger <cg@exept.de>
parents: 10273
diff changeset
   182
6690
07ef28245da8 notifier now initialized here
Claus Gittinger <cg@exept.de>
parents: 6218
diff changeset
   183
ZeroDivide initialize!