This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: string-append/shared
Chris Dean wrote:
Per Bothner <per@bothner.com> wrote:
In this case the string-append and string-append-shared should be
in kawa/lib/strings.scm:
What should I do with this line in gnu/xquery/lang/XQuery.java ?
define("concat", new kawa.standard.string_append());
The old string_append.java has been replaced by the procedure in
strings.scm.
I was going to say:
define_field ("concat", "kawa.lib.strings", "string$Mnappend");
where "string$Mnappend" should be the name of a static final
field in kawa.lib.stringss.
However, the new method probably only works on String, and
Qexo uses String.
I think we'll have to define:
String concat$V (Object[] strings)
in gnu.xquery.util.StringValue, and then use define_method. So this
reduces the advantage of your work.
I can do this if you're not sure how.
--
--Per Bothner
per@bothner.com http://per.bothner.com/