Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 642A6200D0B for ; Wed, 27 Sep 2017 14:30:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6292E1609CA; Wed, 27 Sep 2017 12:30:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC3B91609BC for ; Wed, 27 Sep 2017 14:30:55 +0200 (CEST) Received: (qmail 31808 invoked by uid 500); 27 Sep 2017 12:30:50 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 31790 invoked by uid 99); 27 Sep 2017 12:30:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Sep 2017 12:30:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5012ECE2BF for ; Wed, 27 Sep 2017 12:30:49 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.471 X-Spam-Level: *** X-Spam-Status: No, score=3.471 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nBIR2ghjlClT for ; Wed, 27 Sep 2017 12:30:46 +0000 (UTC) Received: from n5.nabble.com (n5.nabble.com [162.253.133.81]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 19F7560D34 for ; Wed, 27 Sep 2017 12:30:46 +0000 (UTC) Received: from n5.nabble.com (localhost [127.0.0.1]) by n5.nabble.com (Postfix) with ESMTP id 5FBC7973EDC for ; Wed, 27 Sep 2017 05:30:45 -0700 (MST) Date: Wed, 27 Sep 2017 05:30:45 -0700 (MST) From: Daniel Sun To: dev@groovy.incubator.apache.org Message-ID: <1506515445389-0.post@n5.nabble.com> In-Reply-To: References: <1506483468614-0.post@n5.nabble.com> <1506491867742-0.post@n5.nabble.com> Subject: Re: About if statement in the right hand of assignment statement MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 27 Sep 2017 12:30:56 -0000 Hi Paul, I have not investigated the bytecode generation of if statement, so I just provide a reference implementation ;) It's better to implement at the bytecode level(both static and dynamic). Cheers, Daniel.Sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html