with-events-disabledEventswith-events-enabledGoTo Top

with-events-enabled   (option*) declaration* form* => result*[Macro]

Restore event signaling during evaluation of forms.

Package   :gbbopen

Module   :gbbopen-core

Arguments and values

option     No options are currently supported
declaration     A declare expression (not evaluated)
forms     An implicit progn of forms to be evaluated
results     The values returned by evaluating the last form

The values returned by evaluating the last form.

See also

Create a hyp without signaling any events, then add supporting-hypothesis links with events enabled:

  > (with-events-disabled
       (let ((hyp (make-instance 'hyp 
                     :location (list x y)
                     :classification '(:car :truck)
                     :color ':red
                     :belief .85
                     :velocity-range '(5 35))))
          (with-events-enabled ()
             (linkf (supporting-hyps-of hyp) supporting-hyps))
  #<hyp 419 (1835 4791) 0.85 [5..35]>

The GBBopen Project

with-events-disabledEventswith-events-enabledGoTo Top