Perhaps a tiny Macro bug...

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

Perhaps a tiny Macro bug...

Richard VanMetter
I am preparing to teach a short course in ImageJ. While creating a slide
illustrating operator precedence in the macro language, I discovered that

a = 3 * (++2);

     evaluates (I believe) incorrectly to 7.

b = 2;
a = 3 * (++b);

     evaluates correctly to 9

While my construction using (++2) is unlikely to ever be used, I pass
this along in the belief that no bug is too small to ignore.

ImageJ 1.51j; Java 1.8.0_112 [64-bit]


Rich VanMetter

This email has been checked for viruses by Avast antivirus software.

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