0c614cf0617d3e7260c8513bd01dbb79dac5ecfc
[jscl.git] / src / arrays.lisp
1 ;;; arrays.lisp
2
3 ;; JSCL is free software: you can redistribute it and/or
4 ;; modify it under the terms of the GNU General Public License as
5 ;; published by the Free Software Foundation, either version 3 of the
6 ;; License, or (at your option) any later version.
7 ;;
8 ;; JSCL is distributed in the hope that it will be useful, but
9 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
10 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 ;; General Public License for more details.
12 ;;
13 ;; You should have received a copy of the GNU General Public License
14 ;; along with JSCL.  If not, see <http://www.gnu.org/licenses/>.
15
16 (defun upgraded-array-element-type (typespec &optional environment)
17   (declare (ignore environment))
18   (if (eq typespec 'character)
19       'character
20       t))
21
22 (defun arrayp (x) (arrayp x))
23
24 (defun adjustable-array-p (array)
25   (unless (arrayp array)
26     (error "~S is not an array." array))
27   t)
28
29 (defun make-array (dimensions &key element-type initial-contents adjustable fill-pointer)
30   )