From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5053 invoked by alias); 25 Mar 2012 14:23:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30377 Received: (qmail 12611 invoked from network); 25 Mar 2012 14:23:31 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.213.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=v54x6H+8selbtLlLBxzEfenN+YwYFCrjaUvQY0iun/A=; b=Cr4SSLO1cR7LTGBMipCvvaej9ZN62WHCzr1oBXzcsVQfXDIO4ZyQCTwMuF+RS9IClW EITgySX9MoCXlqs7EJ+kE/PM+PnBDiJDMMcMs9pS2rNQmNw4E2VpCgP7GrA8gs0gaVsW G9IxSOXSo+PCDzgFksB0YFZ/RmQx0xm9+X3kefLPWYw8F5yXpNuFsJSCtTBIlKLjzkH9 PWylEyCSqYCAE72mIXPTxBIIUpgmuwpTFKkXbyb8OiEtobrRrOW3XzvOBZ356WxDzP+Z C7RtAnGGPVLhbWexJa8FLhCTE+erDiLsWyBZc7BP7V8H7KSmrj+rkysgVxYPVlGFa+kp caYQ== MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 25 Mar 2012 16:23:25 +0200 Message-ID: Subject: Re: [PATCH] Add _gradle for gradle and gradlew completion. From: =?ISO-8859-1?Q?Jesper_Nyg=E5rds?= To: zsh-workers@zsh.org Content-Type: text/plain; charset=ISO-8859-1 2012/3/24 Mikael Magnusson : > There is no such thing as closures in zsh, you can define it anywhere > you want using a variable called $build_file and it will use the > definition of the variable at the call site, not the definition site. > Ie, the body of a function is completely ignored by zsh until you > invoke the function (but the syntax has to be correct of course). Ah, I finally understood. I'm too influenced by other languages, obviously. I'll change according to your comment.