Is D a cult?

BCS none at anon.com
Sun Mar 7 21:17:16 PST 2010


Hello Walter,

> bearophile wrote:
> 
>> Walter Bright:
>> 
>>> There are significant technical problems with having functions
>>> return tuples.<
>>> 
>> A possibly stupid question: isn't it enough to return a custom
>> struct?
>> 
> No, because of the alignment mismatches with other uses of tuples.
> 

What about passing an array of return location pointers as a hidden arg? 
That would allow the called function to do the assignment.


-- 
... <IXOYE><






More information about the Digitalmars-d mailing list