Reset all Members of a Aggregate Instance

Daniel Murphy via Digitalmars-d-learn digitalmars-d-learn at
Mon Dec 7 19:12:02 PST 2015

On 4/12/2015 8:38 AM, Chris Wright wrote:
> An object reference is just a pointer, but we can't directly cast it. So
> we make a pointer to it and cast that; the type system allows it. Now we
> can access the data that the object reference refers to directly.

Casting is fine too: cast(void*)classRef

More information about the Digitalmars-d-learn mailing list