Mark Fowler wrote:
> 
> On 24 Feb 2007, at 22:58, Michael G Schwern wrote:
> 
>> Just make sure whatever you return evaluates according to the test
>> pass/fail
>> and not its value and you should be fine.  You can return a little
>> wrapper
>> object like...
> 
> Or you could just return a reference to an array with the value in it. 
> That's always true, and uses less magic and works on older platforms...

Uhh, how old are we talking?  overload has been available since 5.002 and
actually usable in the area of 5.4/5.5.

Also you don't want it to always be true.  You want it to reflect whether
the test passed or failed.  I presume you still want the extra value even if
the test failed.

Reply via email to