home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / usr.bin / lisp / lispnews / text0297.txt < prev    next >
Encoding:
Text File  |  1985-11-10  |  397 b   |  18 lines

  1. How does one get code like the following:
  2.  
  3. ; construct an identity transformation matrix.
  4. (defun tm-new ()
  5.     (let ((name (gensym)))
  6.     (*array name 'flonum-block 4 4)
  7.     (do i 0 (1+ i) (= i 4) (store (name i i) 1.0))
  8.     name)
  9. )
  10.  
  11. to work under the compiler?  Compiled, this refuses to believe
  12. in the existence of name.
  13.  
  14. Do I need to declare it as a lambda?  Is there a way to declare arrays?
  15.  
  16.     - Mike
  17.  
  18.