Casting Structs
Philippe Sigaud via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 1 00:59:14 PDT 2014
On Sun, Jun 1, 2014 at 12:34 AM, Timon Gehr via Digitalmars-d-learn
<digitalmars-d-learn at puremagic.com> wrote:
> This behaviour is independent of templates. Struct values of the same size
> can be reinterpret-cast to each other this way even if their types are
> completely unrelated.
Do you know if this is by design?
More information about the Digitalmars-d-learn
mailing list