Is D a cult?

Walter Bright newshound1 at digitalmars.com
Mon Mar 8 04:42:48 PST 2010


grauzone wrote:
> Again, I can't understand. Does the compiler rely that tuples have the 
> same byte layout as structs or function arguments? I thought the 
> compiler could just copy all fields. And the backend can already return 
> multiple values, since it can return structs and static arrays.

A tuple and a struct composed of the same tuple should be interchangeable.

This doesn't work, because the alignment is different for different 
circumstances.



More information about the Digitalmars-d mailing list