From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.help Subject: Re: Precedence of for clauses in cl-loop Date: Fri, 7 Sep 2018 21:37:01 -0400 Message-ID: References: <20180906183335.ADFDB3381CF@munka.dynalias.org> <20180907070834.E7B4B3381CF@munka.dynalias.org> <20180907123556.41C883381CF@munka.dynalias.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1536370527 21960 195.159.176.226 (8 Sep 2018 01:35:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Sep 2018 01:35:27 +0000 (UTC) Cc: Help Gnu Emacs mailing list To: Plamen Tanovski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 08 03:35:23 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fyS9i-0005bi-CS for geh-help-gnu-emacs@m.gmane.org; Sat, 08 Sep 2018 03:35:22 +0200 Original-Received: from localhost ([::1]:40958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fySBo-0000s5-Mn for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Sep 2018 21:37:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fySBM-0000ry-2f for help-gnu-emacs@gnu.org; Fri, 07 Sep 2018 21:37:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fySBL-0007nU-9j for help-gnu-emacs@gnu.org; Fri, 07 Sep 2018 21:37:03 -0400 Original-Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:41659) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fySBL-0007hJ-3R for help-gnu-emacs@gnu.org; Fri, 07 Sep 2018 21:37:03 -0400 Original-Received: by mail-oi0-x22e.google.com with SMTP id k12-v6so30553483oiw.8 for ; Fri, 07 Sep 2018 18:37:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KQgkRHRC4w5suoy3ZBZIl3MvwNmpdPomCj4DiPK3MLc=; b=AwDP9j8eCVLx7qSUXqRB/bShsDOCX4Ty2lb8PstyWmZ3XA02F3e69HGywwrHqZpyYy sJk14zz0iho/fXCkQ41naREg3ighObXAGwgKrEIv4w5+NAaEgJ7/sv47wGOWIzk2h//W hB2OC1OdQBibfdbtML4IyXI6OzJaSUmB3qUrL4iyAEUI9++TIFNMxLuRzTqENVXGWMJH b2l7KS5OrNJZqjm5906XGwK/XzFc4m/BO+n7rw+fpE48qAefwT6Fg3M79Bol0+poSy7c mgrnFRpa8G53ofOhBrLS6PDeLIbTqtK7gCEgtbDdfo98f7Caj2LPTUmk/rFR4ikmvzqy 0NDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=KQgkRHRC4w5suoy3ZBZIl3MvwNmpdPomCj4DiPK3MLc=; b=emb6ldecIhm9cOVkQ05m6Mhtj5DVK9Ttzy2HE3MUHHntULsbiG06y9ho1Y25j5zD1N RIPDKOhGwno/UWg7nsoSgH1T6skTtGtGJK7JQVP4XvIl9gqqOD7q4EDF5RH9zizqiwIk bTUKVf4Z0d6yV4fqQBsYDAYc5q0UZ6QFaHfs515f4vx0mw9OlZanlOt4sQDHY0KhrRxQ Ud/cZrHTD7w6+twvryECXRAat4pnMVqMQUlKxeFOpw8SXM/LnwzSeeoXS5RAaNrk9tUd ps6cjaD8++OvA0+qa+RKglCpsHygNfwTOyx23ey6OHt7twQedCbUkyLgq6HFjPbOEjLS SNsg== X-Gm-Message-State: APzg51BA1cbDMFcOmjDOt+6ZuSJSpVKqtzqzuOXtZF49cjStCBGrphkO dTNPX/WurzBrplZEpBbo+xpnOG+VmADzX6B35e1mcfRE X-Google-Smtp-Source: ANB0VdZfBeEJJIKKi+Bf4J2UA6bqlPqfamRoybOqSFOykOQHUfMMFJkSDzHVBDbBXHKgi6w0bcN9yEoYPE9cQ0FSmTM= X-Received: by 2002:aca:db09:: with SMTP id s9-v6mr10239823oig.339.1536370621970; Fri, 07 Sep 2018 18:37:01 -0700 (PDT) Original-Received: by 2002:a9d:540f:0:0:0:0:0 with HTTP; Fri, 7 Sep 2018 18:37:01 -0700 (PDT) In-Reply-To: <20180907123556.41C883381CF@munka.dynalias.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117841 Archived-At: On 7 September 2018 at 08:35, Plamen Tanovski wrote: > (cl-loop > for x on (number-sequence 1 10) > for z in (elt (number-sequence 1 10) (car x))) > > works fine, which means, x was assigned a value before the for z clause. Hmm, I wasn't aware of this, but it seems to be on purpose, https://www.cs.cmu.edu/Groups/AI/html/cltl/clm/node239.html says: All variables are initialized first, regardless of where the establishing clauses appear in the source. The order of initialization follows the order of these clauses.