GNU bug report logs - #18837
25.0.50; `sort` -- modify function to preserve original list.

Previous Next

Package: emacs;

Reported by: Keith David Bershatsky <esq <at> lawlist.com>

Date: Sat, 25 Oct 2014 21:04:01 UTC

Severity: wishlist

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 18837-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 18837-done <at> debbugs.gnu.org, Keith David Bershatsky <esq <at> lawlist.com>
Subject: Re: bug#18837: 25.0.50; `sort` -- modify function to preserve
 original list.
Date: Mon, 16 Sep 2019 07:30:36 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

>> The doc-string for the function `sort` states that `SEQ is modified by
>> side effects`; however, it does not state in what way the original
>> list gets modified or why such a feature might somehow be useful.
>
> The "usefulness" is to avoid allocating another list in the case where
> the unsorted list won't be used later on anyway.

It doesn't seem like there is anything more to do here, so I'm closing
this bug.

Best regards,
Stefan Kangas




This bug report was last modified 5 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.