public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
From: Peter Lane <peter@peterlane.info>
To: kawa@sourceware.org
Subject: Re: building int[] arrays at runtime
Date: Thu, 02 Feb 2017 18:43:00 -0000	[thread overview]
Message-ID: <5f92fa0e-2149-f270-b166-b30719b0de9d@peterlane.info> (raw)
In-Reply-To: <a402aa84-7829-18e2-17f2-82299d392401@bothner.com>

Thanks Per.


On 01/02/17 23:41, Per Bothner wrote:
> Yes, use the '@' splice operator:
>
> (*x*:show (int[] @(list 3)))

That does the trick!  And very naturally too.

> Use the 'as' special function:
>
> (*x*:show (as int[] (apply int[] (list 3))))
>
> That's basically a type cast.

Thanks for the tip.  That has helped clear up some other warnings I've 
been getting.

--
Peter Lane
http://peterlane.info/scheme.html

  reply	other threads:[~2017-02-02 18:43 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 [this message]
2017-02-01 23:45 ` Per Bothner

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=5f92fa0e-2149-f270-b166-b30719b0de9d@peterlane.info \
    --to=peter@peterlane.info \
    --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).