From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: CL package serious deficiencies Date: Sat, 11 Feb 2012 23:33:44 +0100 Message-ID: References: <33271707.post@talk.nabble.com> <87fwemcwlx.fsf@spindle.srvr.nix> <87d39pgdu4.fsf@gnus.org> <87mx8qy09w.fsf@mithlond.arda> <87ty2xqpf6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328999674 31745 80.91.229.3 (11 Feb 2012 22:34:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 22:34:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Johan_Bockg=C3=A5rd?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 11 23:34:33 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwLWa-00040C-TV for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2012 23:34:33 +0100 Original-Received: from localhost ([::1]:56756 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwLWa-0006eT-2o for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2012 17:34:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwLWW-0006eD-TH for emacs-devel@gnu.org; Sat, 11 Feb 2012 17:34:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwLWV-0001mM-Tc for emacs-devel@gnu.org; Sat, 11 Feb 2012 17:34:28 -0500 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:61024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwLWU-0001m6-IL; Sat, 11 Feb 2012 17:34:26 -0500 Original-Received: by pbcwz17 with SMTP id wz17so3685145pbc.0 for ; Sat, 11 Feb 2012 14:34:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=j7RyIZKW9q6KG6GX3wkxrqLk+ztU7kL/a+8F3iuXvdE=; b=CJ0nQCB6I6jjkyYmojdMUUsoSVFk4cLB9moo1eEvX7CS3gWDJuNfhFIFjMz7Y5h2Ii IEdJA7ktAxukn+EQkr9k1LCxeCONtzJv3FVBOaG4rFbjUBPrjL+jyAohKBE1fq1tRMCm xzZAeUP/ga3mGPlIh5UcvDeGs/HB6ryNycNK4= Original-Received: by 10.68.72.9 with SMTP id z9mr30785521pbu.124.1328999664456; Sat, 11 Feb 2012 14:34:24 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Sat, 11 Feb 2012 14:33:44 -0800 (PST) In-Reply-To: <87ty2xqpf6.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148483 Archived-At: On Sat, Feb 11, 2012 at 17:56, Johan Bockg=C3=A5rd wrote: > There is no promise about in which order the sequence will be traversed > (only from which end elements are :count'ed). You're right. At least, I see no such guarantee in the appropriate 17.3 sec= tion. It is surprising, though, that the promise does exist for COUNT, COUNT-IF, COUNT-IF-NOT: "The from-end has no direct effect on the result. However, if from-end is true, the elements of sequence will be supplied as arguments to the test, test-not, and key in reverse order, which may change the side-effects, if any, of those functions." I mean, :from-end would not be useful for COUNT otherwise, so the language designers gave it something to do. But the result is that COUNT and friends are the only sequence functions which guarantee the order (and so, side effects) of the test and key. Thanks, =C2=A0 =C2=A0 Juanma