Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

Lval-access Msgs

type: message
source files: xgbj.[ch]

SYNTAX

(SEND <gobj> :LVAL-ADJUST-ARRAY <fix:newsize>)  ; 0 <= nex
(SEND <gobj> :LVAL-AREF <fix:index>)            ; 0 <= Index < size
(SEND <gobj> :LVAL-ARRAY-DIMENSION)
(SEND <gobj> :LVAL-SETF <fix:index> <val>)

DESCRIPTION

Fetch or store lvals from lval segment; Get or set size-in-lvals of lval segment. Valid indices are always 0 to LVAL-ARRAY-DIMENSION -1.

EXAMPLES

(setq g (send class-gobject :new))  ; Create a gobject instance.
(send g :lval-adjust-array 2))      ; Expand lbal segment to two lvals.
(send g :lval-setf  0 "a"))         ; Set first lval in segment to "a".
(send g :lval-aref  0))             ; Read back first lval.

Go to the first, previous, next, last section, table of contents.