D Library Breakage

Steven Schveighoffer schveiguy at yahoo.com
Fri Apr 13 22:29:25 UTC 2018


On 4/13/18 5:57 PM, Jonathan M Davis wrote:
> On Friday, April 13, 2018 16:15:21 Steven Schveighoffer via Digitalmars-d

>> I don't know if the compiler can determine if a version statement
>> affects the layout, I suppose it could, but it would have to compile
>> both with and without the version to see. It's probably an intractable
>> problem.
> 
> Also, does it really matter? If there's a mismatch, then you'll get a linker
> error, so it's not like you're going to get subtle bugs out of the deal or
> anything like that. I don't see why detection is an issue here.

Well, for layout changes, there is no linker error. It's just one 
version of the code thinks the layout is one way, and another version 
thinks it's another way. This is definitely bad, and causes memory 
corruption errors.

But I don't think it's a problem we can "solve" exactly.

-Steve


More information about the Digitalmars-d mailing list