QuerySignal.st
changeset 1363 461c6d002b63
parent 1316 248a8cb2ae3b
child 1379 bde210aaccc2
equal deleted inserted replaced
1362:36e887173783 1363:461c6d002b63
    39     by handlers for ordinary signals.
    39     by handlers for ordinary signals.
    40     I.e. a signal handler for a normal signal will not handle a query
    40     I.e. a signal handler for a normal signal will not handle a query
    41     signal. Thus, these bypass anySignal handlers.
    41     signal. Thus, these bypass anySignal handlers.
    42     If unhandled, no error is raised, instead they are simply ignored
    42     If unhandled, no error is raised, instead they are simply ignored
    43     (as opposed to normal signals, which raise an unhandled signal exception).
    43     (as opposed to normal signals, which raise an unhandled signal exception).
       
    44     QuerySignals are also ignored, if a handler exists, but rejects.
    44 
    45 
    45     Their main use is to implement up-Queries via signals even if intermediate
    46     Their main use is to implement up-Queries via signals, that work even 
    46     errorSignal handlers are present (which is not possible with ordinary signals).
    47     if intermediate errorSignal handlers are present 
       
    48     (which is not possible with ordinary signals, since errorSignal handlers 
       
    49      would catch those signals).
       
    50 
    47     Code deep down in the calling hierarchy can post such an up-Query to ask
    51     Code deep down in the calling hierarchy can post such an up-Query to ask
    48     for some information in return or to pass some information upward. 
    52     for some information in return or to pass some information upward. 
    49 
    53 
    50     For example, the activityNotification mechanism is built on top of this:
    54     For example, the activityNotification mechanism is built on top of this:
    51     everyone can send such a notification which is either handled by someone
    55     everyone can send such a notification which is either handled by someone
    56     the intended usage of those signals.
    60     the intended usage of those signals.
    57 
    61 
    58     [see also:]
    62     [see also:]
    59         Signal SignalSet Exception
    63         Signal SignalSet Exception
    60         Object
    64         Object
       
    65         (``Exception handling and signals'': programming/exceptions.html)
    61 
    66 
    62     [author:]
    67     [author:]
    63         Claus Gittinger
    68         Claus Gittinger
    64 "
    69 "
    65 !
    70 !
   124 ! !
   129 ! !
   125 
   130 
   126 !QuerySignal class methodsFor:'documentation'!
   131 !QuerySignal class methodsFor:'documentation'!
   127 
   132 
   128 version
   133 version
   129     ^ '$Header: /cvs/stx/stx/libbasic/QuerySignal.st,v 1.10 1996-04-27 18:00:44 cg Exp $'
   134     ^ '$Header: /cvs/stx/stx/libbasic/QuerySignal.st,v 1.11 1996-05-09 13:23:57 cg Exp $'
   130 ! !
   135 ! !