From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26776 invoked by alias); 1 Feb 2017 23:45:57 -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 26753 invoked by uid 89); 1 Feb 2017 23:45:56 -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=H*M:83ee, hides 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; Wed, 01 Feb 2017 23:45:46 +0000 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1cZ4au-0003JJ-2o; Thu, 02 Feb 2017 00:45:44 +0100 Received: from 70-36-239-8.dsl.dynamic.fusionbroadband.com ([70.36.239.8] helo=localhost.localdomain) by mailfront12.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1cZ4aa-0002rE-NW; Thu, 02 Feb 2017 00:45:24 +0100 Subject: Re: building int[] arrays at runtime To: Peter Lane , kawa@sourceware.org References: <3c2d47e1-5cff-cc8b-c250-9924c36861fb@peterlane.info> From: Per Bothner Message-ID: Date: Wed, 01 Feb 2017 23:45:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <3c2d47e1-5cff-cc8b-c250-9924c36861fb@peterlane.info> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00044.txt.bz2 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/