Subj : Re: returning arguments To : comp.programming.threads From : Sergey P. Derevyago Date : Fri Jul 01 2005 04:25 pm David Butenhof wrote: > To (perhaps) make this more clear... technically, there's exactly ONE > return value from a thread. But the TYPE of that value is "void*" > (pointer). You can carry any pointer type in that "void* container". On > most contemporary mainstream systems you can get away with carrying any > scalar type x with sizeof(x) <= sizeof(void*). > IMHO it should be explicitly noted that passing arbitrary scalar values as pointer values is not standard conforming: 3.7.3.2p4 of ISO/IEC 14882:2003(E) The effect of using an invalid pointer value ... is undefined (On some implementations, it causes a system-generated runtime fault). -- With all respect, Sergey. http://ders.angen.net/ mailto : ders at skeptik.net .