Package: gobject
CStruct gobject:value
Details      The g:value structure is a variable container that consists of a type
    identifier and a specific value of that type.    The type identifier within a g:value instance determines the type of the  associated value. To create an undefined g:value instance, simply create  a zero-filled g:value instance. To initialize the  g:value instance, use the g:value-init function. A g:value
  instance cannot be used until it is initialized.   Examples
(defun example-gvalue ()
  ;; Declare two variables of type g:value
  (gobject:with-values (value1 value2)
    ;; Initialization, setting and reading a value of type g:value
    (g:value-set value1 "string" "gchararray")
    (format t "value1 = ~a~%" (g:value-get value1))
    (format t "gtype  = ~a~%" (g:value-type value1))
    (format t "name   = ~a~%~%" (g:value-type-name value1))         | See also | 
2025-08-23