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=-1.0 required=5.0 tests=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 d6c778ee for ; Tue, 16 Jul 2019 14:14:35 +0000 (UTC) Received: (qmail 8964 invoked by alias); 16 Jul 2019 14:14:24 -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: 24069 Received: (qmail 23339 invoked by uid 1010); 16 Jul 2019 14:14:23 -0000 X-Qmail-Scanner-Diagnostics: from mta01.eastlink.ca 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(24.224.136.30):SA:0(-2.6/5.0):. Processed in 2.137103 secs); 16 Jul 2019 14:14:23 -0000 X-Envelope-From: rayandrews@eastlink.ca X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.eastlink.ca designates 24.224.136.30 as permitted sender) X-Authority-Analysis: v=2.3 cv=Ot8xNB3t c=1 sm=1 tr=0 a=cnjiLCurb0vjRq4CKMedvw==:117 a=cnjiLCurb0vjRq4CKMedvw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=Fvj_CHnEvWp-AXxLcLcA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddriedtgdejkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucfkphepvdegrddvtdejrdduiedrudejgeenucfrrghrrghmpehinhgvthepvdegrddvtdejrdduiedrudejgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.16.174 Subject: Re: Nested function definition question To: zsh-users@zsh.org References: <95595e97-d131-ca4b-ead8-6c0a371ecb05@goots.org> From: Ray Andrews Message-id: Date: Tue, 16 Jul 2019 07:13:45 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-version: 1.0 In-reply-to: <95595e97-d131-ca4b-ead8-6c0a371ecb05@goots.org> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-CA 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.