I don't care (it's not even my code), but I care about the code behaving in
a consistent manner according to its syntax. You can spend a lot of time
debugging until you zero in on something like this in a complex macro. In
addition, it seems to have stopped working recently, which poses another
type of problem.

Christophe

On Tue, Sep 10, 2024 at 6:18 PM Herbie <[email protected]> wrote:

> Bonsoir Christophe,
>
> coding is in fact empirics and if you have a solution, then use it.
>
> Will say, why do you care about an extra line of macro code?
>
> Salut
>
> Herbie
>
> ::::::::::::::::::::::::::::::::::::::::::::::::::
> Am 10.09.24 um 17:44 schrieb Christophe Leterrier:
> > Hi,
> >
> > Consider the following macro code:
> >
> > lutB = getList("LUTs");
> > lutC=Array.concat(newArray("Null"),lutB);
> > Array.show(lutC);
> > lutA = Array.concat(newArray("Null"), getList("LUTs"));
> > Array.show(lutA);
> >
> > The first part runs fine and displays the LUTs with an added "Null"
> > element. The second part fails with the error message:
> >
> > Error: Array expected in line 5:
> > lutA = Array . concat ( newArray ( "Null" ) , <getList> ( "LUTs" ) ) ;
> >
> > Is this behavior expected or is it a bug?
> >
> > Thank you,
> >
> > Christophe
> >
> > --
> > Christophe Leterrier
> > NeuroCyto lab
> > INP CNRS UMR 7051
> > Aix Marseille University, France
> >
> > --
> > ImageJ mailing list: http://imagej.nih.gov/ij/list.html
> >
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

Reply via email to