Hi all, sorry if this question is silly, but is it possible to get the address of an object within the object itself?

e.g.

class Node
{
    this()
    {
        writeln(&this);  // Doesn't work
    }
}

auto node = new Node();
writeln(&node); // Does work

Thanks very much,
Cheers,
Andrew.

Reply via email to