redefined Apex>primitiveFailed
This commit is contained in:
parent
389203b6e4
commit
93872bd81d
@ -219,13 +219,10 @@
|
||||
## -------------------------------------------------------
|
||||
## -------------------------------------------------------
|
||||
|
||||
#method(#class) primitiveFailed
|
||||
{
|
||||
## TODO: implement this
|
||||
## PrimitiveFailureError signal.
|
||||
self dump.
|
||||
'primitive failed' dump.
|
||||
}
|
||||
## #method(#class) primitiveFailed
|
||||
## {
|
||||
## this method will be added after Exception class has been defined.
|
||||
## }
|
||||
|
||||
#method primitiveFailed
|
||||
{
|
||||
|
@ -390,3 +390,17 @@ Processor activeProcess terminate.
|
||||
self signal: 'no such message'.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#extend Apex
|
||||
{
|
||||
#method(#class) primitiveFailed
|
||||
{
|
||||
## TODO: implement this
|
||||
## PrimitiveFailureError signal.
|
||||
self dump.
|
||||
##'primitive failed' dump.
|
||||
# TODO: define a specialized exception class for primitive failure and use it.
|
||||
Exception signal: 'PRIMITIVE FAILED...'.
|
||||
}
|
||||
}
|
||||
|
@ -168,6 +168,10 @@
|
||||
## self test12.
|
||||
|
||||
##100 timesRepeat: ['>>>>> END OF MAIN' dump].
|
||||
|
||||
## the following line(return:to:) must cause primitive failure...
|
||||
##[ Processor return: 10 to: 20. ] on: Exception do: [:ex | ex messageText dump].
|
||||
|
||||
'>>>>> END OF MAIN' dump.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user