ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  5 Data and Control Flow   5.1 Generalized Reference   5.1.1 Overview of Places and Generalized Reference   5.1.1.1 Evaluation of Subforms to Places

5.1.1.1.1 Examples of Evaluation of Subforms to Places

 (let ((ref2 (list '())))
   (push (progn (princ "1") 'ref-1)
         (car (progn (princ "2") ref2)))) 
12
 (REF1)

 (let (x)
    (push (setq x (list 'a))
          (car (setq x (list 'b))))
     x)
 (((A) . B))

push first evaluates (setq x (list 'a))  (a), then evaluates (setq x (list 'b))  (b), then modifies the car of this latest value to be ((a) . b).


Home Previous Up Next Table of Contents Index
© Franz Inc. All Rights Reserved - File last updated 2022-07-25