Subject: Re: specialize method based on array element type From: Erik Naggum <email@example.com> Date: Sun, 10 Mar 2002 18:29:20 GMT Newsgroups: comp.lang.lisp Message-ID: <firstname.lastname@example.org> * John DeSoi | Is is possible to specialize a defmethod parameter based on the | array-element-type? That does not appear to be the case, as the specialized arrays are not subclasses of the array class. You can find whether the implemenentation has an extension by comparing the value of class-of of your vectors: (class-of (make-array 4 :element-type '(unsigned-byte 8))) I am not sure whether the return value would have to be vector or could be a subclass of vector. Allegro CL 6.1, Lispworks 4.120, CLISP 2.27 all return vector, while CMUCL 3.0.8/18c+/build 3030/whatever has a specialized class. /// -- In a fight against something, the fight has value, victory has none. In a fight for something, the fight is a loss, victory merely relief.