Clamps Dictionary
make-bang
Function
(make-bang &optional fn val)
create and return a bang-object instance with trigger-fns set to fn and its ref-value set to val.
Arguments
fn |
A function or list of functions to call on the trigger function. |
val |
The value of the ref-object. |
Example
(defparameter *test-bang* (make-bang (lambda () (format t "~&HiHo")) 2.5)) (trigger *test-bang*) ;;; -> nil ;;; output in the REPL: HiHo (get-val *test-bang*) ;;; -> 2.5 (set-val *test-bang* 42) ;;; -> 42 (get-val *test-bang*) ;;; -> 42
See also
Created: 2025-06-08 So 16:56