From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: maphash: improve docstring Date: Tue, 29 Mar 2016 08:55:08 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1459256154 12473 80.91.229.3 (29 Mar 2016 12:55:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2016 12:55:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 29 14:55:46 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aktBS-0006DJ-C4 for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2016 14:55:46 +0200 Original-Received: from localhost ([::1]:46631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aktBR-0007G1-8F for ged-emacs-devel@m.gmane.org; Tue, 29 Mar 2016 08:55:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47084) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aktBL-0007Fm-7t for emacs-devel@gnu.org; Tue, 29 Mar 2016 08:55:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aktBH-0005OV-TB for emacs-devel@gnu.org; Tue, 29 Mar 2016 08:55:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aktBH-0005OE-Gc for emacs-devel@gnu.org; Tue, 29 Mar 2016 08:55:35 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aktBC-00066D-Qm for emacs-devel@gnu.org; Tue, 29 Mar 2016 14:55:31 +0200 Original-Received: from 23-91-145-163.cpe.pppoe.ca ([23.91.145.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2016 14:55:30 +0200 Original-Received: from monnier by 23-91-145-163.cpe.pppoe.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Mar 2016 14:55:30 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 11 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 23-91-145-163.cpe.pppoe.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:HTDxVnmXHKF2hKo5Z+quvzH8+tk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:202382 Archived-At: > it will be passed to the function, but maybe not. And if an entry is > modified during the loop, then it will be passed to the function > (exactly once) and the value passed will be the one that happens to be > current when the function is called. More specifically, you're guaranteed when entering the function that the key you've received does currently exist in the table and is currently associated with the value you just received. Stefan