Reordered class fields?

Jacob Carlborg doob at me.com
Mon Oct 22 01:37:22 PDT 2012


On 2012-10-22 01:36, bearophile wrote:
> D classes are free to reorder their fields, so maybe Bar1 should reorder
> its fields as Bar3, to save 4 bytes for each instance on 32 bit systems:

Are D allowed to reorder the class fields? What happens then to binary 
compatibility?

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list