POD

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Dec 20 02:56:41 PST 2012


On 12/20/12, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> They can have functions.. in
> which case they aren't POD types at all.

Having regular functions doesn't change the state of PODs. Having a
ctor/dtor/postblit probably does though (you can no longer safely do a
memcpy).

But AFAIK you can always rely on the field layout of a non-nested D
struct, so a D struct should mostly remain compatible to C structs.


More information about the Digitalmars-d mailing list