From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: pietru@caramail.com Newsgroups: gmane.emacs.help Subject: Re: Optional Arguments Date: Mon, 7 Dec 2020 21:25:41 +0100 Message-ID: References: <20201207130630.GA10719@tuxteam.de> <20201207155108.GC15617@tuxteam.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36104"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 07 21:31:54 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kmNAo-0009FY-AM for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 21:31:54 +0100 Original-Received: from localhost ([::1]:39608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kmNAn-0004sC-0l for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 07 Dec 2020 15:31:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39798) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmN4w-00036W-84 for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 15:25:51 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:35263) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kmN4t-0000Tu-4r for help-gnu-emacs@gnu.org; Mon, 07 Dec 2020 15:25:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1607372741; bh=oymYGLvp/A6kByXQGXiD6xBDKwXy8QRul5CxYK/iXs4=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=htJIbMyPGPCT7orMdrD5V2569tXP28EcUq4mc7y14leBMhtQaLYOIPNahXuGhB3K1 kB2V7H3InaLnn0Y/WG6owWve1t/uz+Yx7fjzezWTXg0SgLxWfa4Ukb4q4Qw7qIR00Y P8lDgYO5vwkjFW19rjOKX07jW4MpdtJCym9M3Kcs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Mon, 7 Dec 2020 21:25:41 +0100 Importance: normal Sensitivity: Normal In-Reply-To: X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:m+F/Sti7BUgZ3MIVXlhdq2LXeFhcyCWP3SyIiuX1SAPKLEKiATpRdbqEQPEt50IP85ISJ rhvjdqc1tu9Ej/P4fWJMAvUITqp9PL8zQj50cYgQhNvd4TVjzHntn0TIs2CstgbA3ZEtd1rLWK9J 6kkTGOy8NOAav0JrKNqynfvA1fo28kPjzwPgruTxMNWlNIQVKEFNAYRnEl+8pGeP2Qnz2hookGkC ouZSAbmwKZxk/rZPfYYPHwAnwLcp5ODbEN4pd4PogRdCSEUEV9IrZ7tX8Fe9c59x5Xn6fXr4M1C/ YI= X-UI-Out-Filterresults: notjunk:1;V03:K0:et3zsShv884=:H6dIs8Bs6M16CEz3muZexV h+qiGRVIyxeHvRSyc4RZ3rwYW5edGH27VT5Tt0AcWnZgJ9Zjs+UnYTRWwteWcGSC9Xoa06F47 mxwn8GdYq0edr2cn+qoiyc2KPccZ14o8ud/rx1GJx/J0a6ng4djohQr7jPdFgqfcsAiOJvL5a 1Khul0L23bKzw0Ee8FKCW85E5CHAxpMnzwh2bPDQBgmg9w6bMeajY505C1ga49O37RhWyGcu0 uqnrSeYc9Y6KQgQCtjW6iAMsnda99HBlJ1zrGGhejEcX+M6fGBXVsy2K9HL6513rPwxQvAai/ dNcL2bbozUJlkqjWeEsyxotlURXm1A1GQyC6/jE8NZ+eRYNQ8jWKkT9o4XC6IfOdXFGhDrhj8 1XAMSyEjMmik8sX00+Rj4pCwU+7Fdg3z+A5svTIhAiPJui+v0Btd4uL2X0BiOvgzgPrcIR659 6IcnsSxI/uXhU4K9jJRJl5Yx90kexbP6KFh7jJzL4FW0pqn2usoAh+l/gDCB9zyUYMoHCJ/vd IUKwESNZE+J0ok8uH3AMJbCp36C7F+J8aLjK1gMYeHjEY8yfGCU20/fZX5p6D/1GTBkUmvNDZ DoAYKHc4OmTBM= Received-SPF: pass client-ip=212.227.15.19; envelope-from=pietru@caramail.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:126171 Archived-At: > Sent: Monday, December 07, 2020 at 9:13 PM > From: "Stefan Monnier" > To: help-gnu-emacs@gnu.org > Subject: Re: Optional Arguments > > >> Either you return it (in your case, e.g. by returning a pair) > >> > >> (cons ma mb) > > > > Because by default, a function returns the value of the last expressio= n > > evaluated as the return value. Correct? > > Almost: to be correct you'd have to remove "by default, ". Not by default, always. > > Stefan > > >