From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 98213daa for ; Tue, 16 Jul 2019 14:44:51 +0000 (UTC) Received: (qmail 20827 invoked by alias); 16 Jul 2019 14:44:42 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24070 Received: (qmail 24795 invoked by uid 1010); 16 Jul 2019 14:44:42 -0000 X-Qmail-Scanner-Diagnostics: from ny007.relay.arandomserver.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25510. spamassassin: 3.4.2. Clear:RC:0(172.96.188.169):SA:0(-2.0/5.0):. Processed in 2.264381 secs); 16 Jul 2019 14:44:42 -0000 X-Envelope-From: zsh@goots.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _ny-spf.arandomserver.com designates 172.96.188.169 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=goots.org; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:To:Subject:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TQQD9KcJxuO0f40B4BHlE8u9zHnSTcQPAyZFixtapSk=; b=sgHtn5QCO6G8p2glM8cjvpBXsO tTYf0UICPNQ1EXnqQdzp/AWD4SEgMaQ03T/EmGqS3h9esHu7jawQuDPtlV2Nh9Jt+wQBXs/PP8MYG ioIjnj0IcQv8E92bqZCa8Nc/oWcsmgt1hTIBjcLu8uQrfRANSfg60pEr19CcLgLq/8XrZCKOldFex 7a7PkktP2ZbRcVSQaeEtZkFcF4K1l0OoZPJQIm8DUoR1OMQ51M6F1ARbWqPfcC64WGO7qgv8ZWpmN YNdRbZdIh9PUb1LIHwzBMwGueF1xNFSLLG2H2CASuyaJrquiVcPMmt/SywHG/kbYRYWoCJoYWhkYf XmZO4+/g==; Subject: Re: Nested function definition question To: Ray Andrews , zsh-users@zsh.org References: <95595e97-d131-ca4b-ead8-6c0a371ecb05@goots.org> From: Nick Cross Message-ID: <8c968d3a-2a7a-d16c-25f4-2fc13cdfffa7@goots.org> Date: Tue, 16 Jul 2019 15:44:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-AuthUser: goots@goots.org X-Originating-IP: 172.96.184.4 X-SpamExperts-Domain: ams203.hawkhost.com X-SpamExperts-Username: relay Authentication-Results: arandomserver.com; auth=pass (login) smtp.auth=relay@ams203.hawkhost.com X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.27) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0U6y6flTXvu8AHhQTLy0w52pSDasLI4SayDByyq9LIhVA6Bm7zlsMTOO FOmBVCK75kTNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3Kl1t3PxQdgOVB4KO7stALLWEE mBep6FCW/J2v9LNJYv8M/bazhR0lOeWWgqvlJDfx58fMnqZUTt7CyKlJUh+zhjRwvcZs/tXjWI1B yUjY29jloW5O8nKi+aEgzCvYcGcNEi6bBF3FZGh7T35ujWkvPF94HqUgM1bIP630o6RuM97Y4qDj xTNYOyQQ60ki1nvvARsynxDH0D+SLDJWdESXziw50BoEYB44qFPH6be8XguwCtC/7kzbd1gsONRs xm9WavqbvYaNvQlcqdw7fQPXObl71DiUa2SoiNElrMJoqTOk/MKmPbquTkfzz0APLa5mY6A+O/pJ gQO52fHOLKGnHdclsf95ERnfa5/3utVu63cGgIqsnjgPIxt+QJb5OikLV0VRXawyICi9P2LaegYD 7MEavzt+PYIWFngwZuyqjCaZSjmmVb1jzWCjpHhh1WjZqXWvTtyZt5+E2rHRTxiOPQKf33qQtTYr DPixEr4D2aetI4g+l6rCWbY0MZcgnbHs5dmPTEEmx4/N3lqiWWXcjbsCnerI87CybAKXp7fccSO4 m9EbquMnY9tr6T6W2Q3IstqZeeNpnvksNBfDclQRjd4x9lcMF6FXCuKivZz87hj6kJebXlAPCuOy 2A2+Q/4pASQH/fFWsW+pt1nw1XQeAeqZYdCyF4Xprs4NJWFFvHgZAMYQbzmyHr3oyblHiLmknphs Ab1tpT95/HJFQLhMhzwJWw42swm4bO6gacpMpzJSO+xKV0Xeg2baDKlHX+7GVRf02A6nrN38jJA2 T/4mqUD1YI5n6glmGDHzUzxY9eq53WsuYtMuUmGk3ptH1F5U3jR5NeVaJQBh0uawl0Cg8vg8Cs3U kG+oTPqTOJ7aFcvRdCjJjOHexxR9klZ3AbhAU/cDVUC3wQtRpxIbB2G25zcw3g5UZfjmVzOIQoUJ k4HHKlSFZnsNX9C2FSfjBOMW X-Report-Abuse-To: spam@se001.arandomserver.com On 16/07/2019 15:13, Ray Andrews wrote: > On 2019-07-16 1:43 a.m., Nick Cross wrote: >> >> >> Is there a way of 'inlining' the definition of common in foo so that I >> don't have to call it each time? ( but the source can still be >> separated out for maintenance purposes ) >> > Why would you want to?  It's interpreted so there'd be almost no > difference in speed even if you did actually inline it, no?  Mind I > suppose if 'common()' was autoloaded there might be a microsecond > improvement but. > > I realise its interpreted and it makes little or no difference, it was more out of curiosity ;-) Nick