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 E056B200C02 for ; Fri, 20 Jan 2017 08:22:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DF21A160B48; Fri, 20 Jan 2017 07:22:37 +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 35D23160B39 for ; Fri, 20 Jan 2017 08:22:37 +0100 (CET) Received: (qmail 18323 invoked by uid 500); 20 Jan 2017 07:22:31 -0000 Mailing-List: contact users-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@groovy.apache.org Delivered-To: mailing list users@groovy.apache.org Received: (qmail 18313 invoked by uid 99); 20 Jan 2017 07:22:31 -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; Fri, 20 Jan 2017 07:22:31 +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 BAAEAC0D7C for ; Fri, 20 Jan 2017 07:22:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.398 X-Spam-Level: ** X-Spam-Status: No, score=2.398 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 OQKtBqvQaRWG for ; Fri, 20 Jan 2017 07:22:30 +0000 (UTC) Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 4A19D5FC67 for ; Fri, 20 Jan 2017 07:22:29 +0000 (UTC) Received: by mail-pf0-f177.google.com with SMTP id 189so20437493pfu.3 for ; Thu, 19 Jan 2017 23:22:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=m8WMadaSmhRMHLHZWtxSW3xfP2SJ8yo/w18fGLKCEZY=; b=ioHqUW5c1/HQ/k4d4wJ/ukChisyhyNVNjUpjaMsIRn2EKO/lSeq/4p9x0g717HOBSL +DbVbbalbWCNihi6UqXE4VWYzlghexBB2/d/V3sFVoS4tiBczdY9JSG3fz3GUWo4XIlV I4Xf7IpWeksQLNqcWApuq5dj9HqW6O0cMBobOSq7cWb8kieRurvNTU3aYrbZ18WQO63a ZQ3xMgq9D3kZhr0IqyUrluExWR3ZKjEoKn4qVAWNFEAfhOPpg9sp8L3GFUEI+jbiST4M f2Z6RmiznPvKt5tpzVPEVr5smLmEXgjk9e/KLA6CUyPydNUxKHUgkckBRCYlwJg98eFE P9JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=m8WMadaSmhRMHLHZWtxSW3xfP2SJ8yo/w18fGLKCEZY=; b=L5t9gnXGAGh7rP0WPWI1gqH5ALAMcJvqRr2DXDjXYCc/rF6BLNgrZ+p+ZMB3IS0S+M ZKwSv63P6FwLwTWJ5cqNNNT7P4B+g0Jl9kDUD9kPenXBqzn+aOBkMJ10pmPY652X9kfM 8FO+pmf/FnpUpzJra1xBOjfByIRgWGKoNaFqnlwk9QV5X8vkZ6fYVGDsS4kGt7xhj5+Y twjqF94ch63ANFI8kUwL98OQjuPf/Rntva4niru9K4ml7+/Y4iV6dGaLAMGKunORL2MV NaBpXaS6dij0OzEqooZZVpD5trNf8IpHuog4s1iUqKZHe5LA6ut/xzZ9UWGyFGcu35zI rJQQ== X-Gm-Message-State: AIkVDXKl6HbqpFKNAyPWLB2LLsJpCw5ChHWqUnSpzanYUz2y67jH05TQeQSNGchvuQUdFw== X-Received: by 10.98.153.155 with SMTP id t27mr15108667pfk.48.1484896947846; Thu, 19 Jan 2017 23:22:27 -0800 (PST) Received: from [127.0.0.1] ([138.197.197.64]) by smtp.gmail.com with ESMTPSA id w125sm13966797pgb.11.2017.01.19.23.22.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 23:22:27 -0800 (PST) From: Yang Yang Content-Type: multipart/alternative; boundary="Apple-Mail=_9BC8FD0B-0219-4EB1-B364-FE66F3571EF6" Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: A strange script Message-Id: <47BA20FC-7FF4-410A-B6CF-A081A8102101@gmail.com> Date: Fri, 20 Jan 2017 15:22:20 +0800 To: users@groovy.apache.org X-Mailer: Apple Mail (2.3259) archived-at: Fri, 20 Jan 2017 07:22:38 -0000 --Apple-Mail=_9BC8FD0B-0219-4EB1-B364-FE66F3571EF6 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Script: a = {x -> println x} a("a${a}") Output: a a Why? --Apple-Mail=_9BC8FD0B-0219-4EB1-B364-FE66F3571EF6 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii
Script:
a = {x -> println x}
a("a${a}")

Output:
a
a

Why?
--Apple-Mail=_9BC8FD0B-0219-4EB1-B364-FE66F3571EF6--