(array (make-storage-vector size)))
;; Upgrade type
(if (eq element-type 'character)
- (setf element-type 'character
- initial-element (or initial-element #\space))
+ (progn
+ (oset array "stringp" 1)
+ (setf element-type 'character
+ initial-element (or initial-element #\space)))
(setf element-type t))
;; Initialize array
(dotimes (i size)
;; You should have received a copy of the GNU General Public License
;; along with JSCL. If not, see <http://www.gnu.org/licenses/>.
-;; (defun stringp (x)
-;; (and (vectorp x) (eq (array-element-type x) 'character)))
-
(defun stringp (s)
(stringp s))