[slime-devel] Re: simple-base-string declarations

Christophe Rhodes csr21 at cam.ac.uk
Tue Aug 31 23:48:41 UTC 2004


Helmut Eller <e9626484 at stud3.tuwien.ac.at> writes:

> Christophe Rhodes <csr21 at cam.ac.uk> writes:
>
>> Hi,
>>
>> In a number of places in swank.lisp various strings are declared as
>> SIMPLE-BASE-STRING.  Is there a reason for this declaration -- in
>> particular, is it expected that these strings will be specialized to
>> hold only BASE-CHAR?  Or are they in fact general strings?  (at least
>> the version in BRIEFLY-DESCRIBE-SYMBOL-FOR-EMACS leads me to suspect
>> that they are fairly general strings).
>
> They are general strings.  I think the primary reason for the
> declarations was to keep SBCL a bit quiet.

Heh.  The good news is that sbcl is now quiet, at least as respects
optimization notes, by default.

>> If I'm right, could the declaration be changed to reflect this, maybe
>> to SIMPLE-STRING (or even STRING, if they're not in
>> performance-critical areas)?
>
> Yes, of course.  I'm also happy if the declarations
> are removed altogether :-)

That would suit, too.

Cheers,

Christophe
-- 
http://www-jcsu.jesus.cam.ac.uk/~csr21/       +44 1223 510 299/+44 7729 383 757
(set-pprint-dispatch 'number (lambda (s o) (declare (special b)) (format s b)))
(defvar b "~&Just another Lisp hacker~%")    (pprint #36rJesusCollegeCambridge)





More information about the slime-devel mailing list