Comparing D structs

Dan twinbee42 at skytopia.com
Sun May 17 12:55:35 PDT 2009


Structs can't easily be compared in C because of potential 'padding' inside the struct which may (or may not) exist.

I was jut wondering if D somehow gets round this, and allows something like memcmp to easily compare two structs.


More information about the Digitalmars-d-learn mailing list