[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(declare (type fixnum ---)) considered etc.
- To: common-lisp@su-ai.arpa
- Subject: (declare (type fixnum ---)) considered etc.
- From: franz!smh@kim.Berkeley.EDU (Steve Haflich)
- Date: Thu, 24 Jul 86 22:11:10 PDT
- In-reply-to: ucbkim!mit-ems.ARPA!NGALL%G.BBN.COM's message of 23 Jul 1986 23:18-EDT
Date: 23 Jul 1986 23:18-EDT
From: NGALL%G.BBN.COM
My solution is to write (integer 0 #.array-dimension-limit).
It works just fine.
-- Nick
Of course this `works fine', but perhaps what better captures your
intended efficiency is an *exclusive* upper limit:
(integer 0 (#.array-dimension-limit))
But note that with such a declaration on the array index i, this
innocuous code could fail:
(let ((len (length my-array)))
(do ((i 0 (1+ i)))
((> i len))
...))