• Top
  • Sint-array

Change-sint-array

Modifying constructor for sint-array structures.

Syntax
(change-sint-array x 
                   [:elemtype <elemtype>] 
                   [:elements <elements>]) 

This is an often useful alternative to make-sint-array.

We construct a new sint-array structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

Definition

This is an ordinary change- macro introduced by fty::defprod.

Macro: change-sint-array

(defmacro change-sint-array (x &rest args)
  (std::change-aggregate 'sint-array
                         x args
                         '((:elemtype . sint-array->elemtype)
                           (:elements . sint-array->elements))
                         'change-sint-array
                         'nil))