On Sun, May 17, 2009 at 3:55 PM, Dan <twinbe...@skytopia.com> wrote:
> 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.

As grauzone said, you just use == to compare them.  D solves the issue
with C's uninitialized holes by always initializing structs.
Therefore the padding holes are always filled with 0s.

Reply via email to