>>>>> "sedachv" == sedachv <[EMAIL PROTECTED]> writes:
sedachv> Hi,
sedachv> I'm experimenting trying to use complex numbers specialized on fixnums
sedachv> in place of a 2 element simple-vector. However, CMUCL 19a (Linux
sedachv> binary) compiler fails when the type of a variable is declared to be
sedachv> '(complex fixnum):
sedachv> * (deftype 2vec () '(complex fixnum))
sedachv> 2VEC
sedachv> * (defun a (b) (declare (type 2vec b)) b)
sedachv> A
sedachv> * (compile 'a)
sedachv> ; Compiling LAMBDA (B):
sedachv> Error in function KERNEL:CONTAINING-INTEGER-TYPE:
sedachv> #<NUMERIC-TYPE (COMPLEX FIXNUM)> isn't an integer type?
sedachv> [Condition of type SIMPLE-ERROR]
sedachv> Restarts:
sedachv> 0: [ABORT] Return to Top-Level.
Oops. I can reproduce this. This is fixed in the latest snapshots;
I'm not sure the cause of this error right now, and don't want to look
into it since the snapshots don't have this problem. Is 19a a
requirement?
Also, cmucl doesn't have specialized complex number for fixnums. It
only supports (complex rational), (complex single-float), and (complex
double-float).
Ray