Reordered class fields?
Jacob Carlborg
doob at me.com
Wed Oct 31 00:19:18 PDT 2012
On 2012-10-31 02:53, Peter Summerland wrote:
> The order of the fields is rearranged for packing. Does that affect the
> tupleof property? The example in http://dlang.org/class.html for Class
> properties tulpleof seems to implie that the the fields the returned
> Expression Tuple are arranged in lexical order (i.e., as defined by the
> programmer in the class definition). Is this always true for classes?
> What about structs?
I don't know. But I would not count on the order of tupleof. I would
consider that implementation defined.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list