From: Chad Fowler Date: 2003-12-19T09:24:57+09:00 Subject: Re: How to return more than one result from a method? On Fri, 19 Dec 2003, Tim Hunter wrote: # On Fri, 19 Dec 2003 09:12:20 +0900, Chad Fowler wrote: # > # > What does the Float represent? Perhaps there is a relationship between # > the two that would make a new type of class communicate better. My # > thought is (generally) that if you can't tie the two return values # > together in some kind of meaningful way, you may be doing more than one # > job in the method and you could split the method in two. That's just a # > heuristic of course. Can you explain what the method does a little more? # > # # The method compares two Images and returns a "difference" image (a new # Image that graphically highlights the differences between the two input # images). The Float is a "distortion" statistic - a measure of the amount # of difference between the two. # I think I might just "return new_image, distortion" in this case. :)