This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: building int[] arrays at runtime
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