On Mon, 10 Feb 2003 14:55:21 +0100
Rico Jansen <[EMAIL PROTECTED]> wrote:
>
> CALL FOR: Hack, Last Of Array function in mm:import
>
I hereby revoke this call as the solution had too large an
impact on existing code, and a more elegant solution is
available.
See Michiels response which I will repeat here:
diff -r1.14 WriterHelper.java
177a178,185
> // Take last of list if vartype defined not to be a list:
> if (v instanceof java.util.List) {
> if (vartype != TYPE_LIST && vartype != TYPE_VECTOR) {
> java.util.List l = (java.util.List) v;
> v = l.get(l.size() - 1);
> }
> }
>
This will accomplish the same as my code.
--
Rico Jansen ([EMAIL PROTECTED])
"You call it untidy, I call it LRU ordered" -- Daniel Barlow