Re: list, vectors, and stucts



Oops, forgot to post my updated macro code, sorry:

(defmacro make-initialized-array (specifications &rest values)
"Make an array to hold the values specified."
(let ((num (length values))
(var (gensym)))
`(let ((,var (make-array ,num ,@specifications)))
(setf ,@(loop for v in values
for i from 0
append (list `(aref ,var ,i) v)))
,var)))

.



Relevant Pages

  • FSL specifications for array words : dynamic arrays
    ... Continuing the discussion of possible "minimalist" specifications ... whose storage space can be recovered ... storage of the array elements until the word}malloc has been applied ... or if storage space has not been established for a DARRAY ...
    (comp.lang.forth)
  • FSL specifications for array words
    ... specifications of the individual words used in these phrases is less well ... But a full specification of the word ARRAY or of the ... complete enough to guarantee that current FSL code which uses only ... But it does impose limits on implementations. ...
    (comp.lang.forth)
  • Re: FSL specifications for array words
    ... a{Cause the array token of an array with execution token xt2 to be the ... was to write specifications that are consistent with existing FSL ... storage and also a specific row/column major/minor storage format. ... any FSL code that does make that assumption already documents it. ...
    (comp.lang.forth)
  • Re: FSL specifications for array words
    ... Charles G Montgomery writes Re: FSL specifications for array words ... Cause the array token of an array with execution token xt2 to be the same ... execution tokens. ...
    (comp.lang.forth)
  • Re: How to ensure memory leak protection?
    ... (as opposed to Array objects). ... Of course the language used in specifications ... the DOM specifications refer to DOM properties as some sort ...
    (comp.lang.javascript)