From: Michael Ulm Date: 2005-05-24T16:41:56+09:00 Subject: Re: Multiple return and parallel assignement [OT] Steven Jenkins wrote: > Michael Ulm wrote: > >>If Kernigan and Richie had paid more attention at >>math class we would have declarations like >> >>(float, float) transform (float, float) >> >>in C, and the world would be a better place for it :-) > > > Dennis Ritchie has a degree in Applied Mathematics from Harvard. Brian > Kernighan was not one of the developers of C, although he co-authored a > famous book with Ritchie. And C functions have been able to return > aggregates for a long time, maybe since the beginning. They're called > structs and unions. I'm still waiting for apologies from K & R for having such hard to spell names... Of course it is possible to return aggregates in C, it is just not very convenient. The above type of declaration would not have cost much in terms of complexity of the language, but it would have made quite an improvement for code write- and readability. Michael -- Michael Ulm R&D Team ISIS Information Systems Austria tel: +43 2236 27551-219, fax: +43 2236 21081 e-mail: michael.ulm@isis-papyrus.com Visit our Website: www.isis-papyrus.com