public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Per Bothner <per@bothner.com>
To: Peter Lane <peter@peterlane.info>, kawa@sourceware.org
Subject: Re: building int[] arrays at runtime
Date: Wed, 01 Feb 2017 23:45:00 -0000	[thread overview]
Message-ID: <b489e880-83ee-4683-fa16-1a66cc5ed9a2@bothner.com> (raw)
In-Reply-To: <3c2d47e1-5cff-cc8b-c250-9924c36861fb@peterlane.info>

On 02/01/2017 03:12 PM, Peter Lane wrote:
> I can turn the warnings off with: --warn-invoke-unknown-method=no
> but that hides other potential problems, like a mis-spelt method name, until they trip a runtime exception.

It is possible to control warnings locally:

   (with-compile-options warn-invoke-unknown-method: #f
     (*x*:show (apply int[] (list 3))))

But using the splice operator is definitely my recommendation:

    (*x*:show (int[] @(list 3 4 5))
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/

      parent reply	other threads:[~2017-02-01 23:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-01 23:12 Peter Lane
2017-02-01 23:41 ` Per Bothner
2017-02-02 18:43   ` Peter Lane
2017-02-01 23:45 ` 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=b489e880-83ee-4683-fa16-1a66cc5ed9a2@bothner.com \
    --to=per@bothner.com \
    --cc=kawa@sourceware.org \
    --cc=peter@peterlane.info \
    /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).