From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Bound index checks in cl-seq functions Date: Sat, 4 Feb 2017 15:51:22 -0500 Message-ID: References: <87efzdrjsj.fsf@calancha-pc> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1486241488 11272 195.159.176.226 (4 Feb 2017 20:51:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Feb 2017 20:51:28 +0000 (UTC) Cc: Emacs developers To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 04 21:51:25 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ca7Iq-0002jz-IW for ged-emacs-devel@m.gmane.org; Sat, 04 Feb 2017 21:51:24 +0100 Original-Received: from localhost ([::1]:40828 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca7Iv-0006t4-Ru for ged-emacs-devel@m.gmane.org; Sat, 04 Feb 2017 15:51:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ca7Iq-0006sx-JM for emacs-devel@gnu.org; Sat, 04 Feb 2017 15:51:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ca7Iq-0003si-1K for emacs-devel@gnu.org; Sat, 04 Feb 2017 15:51:24 -0500 Original-Received: from mail-oi0-x242.google.com ([2607:f8b0:4003:c06::242]:34634) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ca7Ip-0003sU-Sv for emacs-devel@gnu.org; Sat, 04 Feb 2017 15:51:23 -0500 Original-Received: by mail-oi0-x242.google.com with SMTP id w144so3950522oiw.1 for ; Sat, 04 Feb 2017 12:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=elvkzzCE5MMLMIix8PiVpRFYdkSlJZX9VXPmDzT9UJQ=; b=Oi+E7BpJ5vO1/8BkglwkRFiAwPTSMo4msLi+MKh7D0pFAAjbyOCENBy9r3RCDUnQig O1B0yltZL9oyeKE5oyuUOZ/l3IwRfvdEwkmQfybLlq9BpEg07rU/+8xVsZc3/K/KAqdq FuNe4vtygpd2tHmXbTpG65bcEu+/YskPY+qIL/7HTWexYkyk+783Bp9bPq2QO80Rb3/O xkxav/0oXEn/CHlxrGaqUsEJ7TuLOltHJMb71gLcMjHTtxtj52RFillmAZHoWCfwkDUD uPzaJDsnA3+OW9NfiwCH9VadHiqS6oCIXNNC4gtvH2ueg+eZPfy2/5iycoqN7vUD36UN OyUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=elvkzzCE5MMLMIix8PiVpRFYdkSlJZX9VXPmDzT9UJQ=; b=MgsyPF19+yTfxF928qAp1K6B8IQ+Ioe/SMyP4Cv5uHq7tyH7Te90GNDb2/WnWDLSDG ZWHS2Wf2vrOD/YQ1TjgvCd/pqRSlkVMB4stf8sIsKwhve4lDwFjQUNmNMrJbtJW3CmuL 03TSGRgWmZRnYpc9UyqGWUU4Ipy/s8UwHm9VSiMDSs+98RiX3iMe5uCCk/1MT39ACTyN H6h+LIjcK2luhRWT7JM6awUzkAFBvrFBk9nKSyQ2pANyKaYZ1acwy53Pb43zLbBnvVCD 9zD6+Nq2M8jy1TRetGeE+hRagmeFJJ99r8GLIuoN1zl8G48333VT6RLAs/HY7i06sUV/ bflw== X-Gm-Message-State: AMke39lzn9pstfPvvmxGX8lpqhMMcuS6Apzw3a95Qr2Q52OZriJDqG7JczMTiH+IDONnrfO08F7Gnuu9Kc/gRg== X-Received: by 10.202.172.136 with SMTP id v130mr1869839oie.167.1486241483102; Sat, 04 Feb 2017 12:51:23 -0800 (PST) Original-Received: by 10.157.21.117 with HTTP; Sat, 4 Feb 2017 12:51:22 -0800 (PST) In-Reply-To: <87efzdrjsj.fsf@calancha-pc> X-Google-Sender-Auth: jG0WgFxD9NN3FYfwyz94jCNA1gk X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::242 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:211970 Archived-At: On Sat, Feb 4, 2017 at 11:40 AM, Tino Calancha wrote: > +;; Throw an error when :start or :end are > sequence length. > +(defmacro cl--check-bound-indices (cl-seq1 cl-seq2 cl-keys) I wonder why this is a macro and not a function.