If you could make any changes to D, what would they look like?

H. S. Teoh hsteoh at quickfur.ath.cx
Wed Oct 20 15:53:53 UTC 2021


On Wed, Oct 20, 2021 at 03:43:56PM +0000, IGotD- via Digitalmars-d wrote:
[...]
> Just a small question, if you want a raw pointer to your object how
> would that look like. Since Object* is a reference (with things going
> on behind the scene), what is the raw pointer?

Object* *is* the pointer.  There's nothing going on behind the scenes.

Or, in present notation, cast(void*)Object gives you the pointer.


T

-- 
Study gravitation, it's a field with a lot of potential.


More information about the Digitalmars-d mailing list