public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Sascha Ziemann <ceving@gmail.com>,
	kawa mailing list <kawa@sourceware.org>
Subject: Re: syntax-rules problem
Date: Fri, 10 Mar 2017 20:11:00 -0000	[thread overview]
Message-ID: <8aa6690b-9414-78fb-7523-7bf9038a5135@bothner.com> (raw)
In-Reply-To: <d229c021-f1d4-ac99-6625-eaa4b793e723@bothner.com>

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/

      reply	other threads:[~2017-03-10 20:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-10  9:35 Sascha Ziemann
2017-03-10 19:04 ` Per Bothner
2017-03-10 20:11   ` Per Bothner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8aa6690b-9414-78fb-7523-7bf9038a5135@bothner.com \
    --to=per@bothner.com \
    --cc=ceving@gmail.com \
    --cc=kawa@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).