Re: Multiple return values...

2012-03-08 Thread Manu
** Appologies, wrong forum. Auto-complete filled the wrong address and I didn't notice ** On 8 March 2012 21:40, Manu wrote: > I find myself really wishing for proper multiple return values almost > every day, particularly when I work with maths heavy code, and especially > for efficiently retur

Multiple return values...

2012-03-08 Thread Manu
I find myself really wishing for proper multiple return values almost every day, particularly when I work with maths heavy code, and especially for efficiently returning error codes in functions I'd rather not throw from. Many maths-y functions return some sort of pair; intersections return (ray, t