Re: To POD or not to POD

2013-02-12 Thread Iain Buclaw
On 12 February 2013 17:45, Johannes Pfau wrote: > I've started debugging the unit test failures in std.datetime: > > We have this Date struct: > - > struct Date > { > this(int a){} > short _year = 2; > ubyte _month = 1; > ubyte _day = 1; > } > - > > It's passed to D run

To POD or not to POD

2013-02-12 Thread Johannes Pfau
I've started debugging the unit test failures in std.datetime: We have this Date struct: - struct Date { this(int a){} short _year = 2; ubyte _month = 1; ubyte _day = 1; } - It's passed to D runtime variadic functions. It's 4 bytes in total so GCC passes this struct in