Login  Register

why does macro command "replace()" print to Log window?

Posted by Bill Christens-Barry-2 on Mar 25, 2020; 1:05pm
URL: http://imagej.273.s1.nabble.com/why-does-macro-command-replace-print-to-Log-window-tp5023088.html

Hi,

I'm trying to understand why when a macro runs the command "replace()" the result is printed into the Log window, a la:

    a = "string1";
    replace(a, "1", " that was altered");// ==> "string that was altered" printed in the Log window

I get this result using macOS 10.14.6 and also using Windows 7, both using recent ImageJ 1.52v updates, in all cases with debug mode turned OFF.

Moreover, I'm not sure where I should be looking in the source code to follow the action and understand this. I've tried looking at Functions.java and elsewhere, but haven't sorted this out.

Can anyone point me to an explanation and/or the relevant code?

Thanks,

Bill

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