[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-kawa] [bug #49537] 'format' on String[] (supported?) prints only fi
From: |
Per Bothner |
Subject: |
[Bug-kawa] [bug #49537] 'format' on String[] (supported?) prints only first |
Date: |
Sat, 5 Nov 2016 04:48:33 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36 |
Update of bug #49537 (project kawa):
Status: None => Postponed
Assigned to: None => bothner
_______________________________________________________
Follow-up Comment #1:
I believe you've hit this issue, mentioned in the "Recent News" section of the
manual:
Kawa traditionally followed Java in allowing you to pass an array with the
"rest" arguments to a varargs method. (A "varargs" method includes Java
varargs methods, as well as Kawa methods with a #!rest parameter that is
explicitly typed to be an array type.) For example, you could write:
(define args (Object[] 3 "cm"))
(java.lang.String:format "length:%s%s" args)
This is deprecated, and may stop working in a future release.
Instead, use the splice operator:
(java.lang.String:format "length:%s%s" @args)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49537>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/