From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23196 invoked by alias); 10 Mar 2017 20:11:28 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 22711 invoked by uid 89); 10 Mar 2017 20:11:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 Mar 2017 20:11:18 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cmQse-0000I4-V9; Fri, 10 Mar 2017 21:11:17 +0100 Received: from 70-36-239-163.dsl.dynamic.fusionbroadband.com ([70.36.239.163] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1cmQsa-0001Zt-W2; Fri, 10 Mar 2017 21:11:13 +0100 Subject: Re: syntax-rules problem To: Sascha Ziemann , kawa mailing list References: From: Per Bothner Message-ID: <8aa6690b-9414-78fb-7523-7bf9038a5135@bothner.com> Date: Fri, 10 Mar 2017 20:11:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00069.txt.bz2 On 03/10/2017 11:04 AM, Per Bothner wrote: > Obviously, Kawa should not throw ArrayIndexOutOfBoundsException, > but should instead report an error. So that is a Kawa bug. I fixed Kawa to print an error message in this case, rather than throwing ArrayIndexOutOfBoundsException. The message isn't as helpful as I'd like. One complication is that pattern variable names aren't available at macro-expansion time. This could be changed, but it isn't a priority right now. -- --Per Bothner per@bothner.com http://per.bothner.com/