On 2017-02-15 22:42, Andrew Chapman wrote:

Thanks Jonathan.  Good point about the reference address.  I can work
around this quite easily, but I was curious.  I will try the void* cast
and see what happens.

If it's only for printing you can use the C "printf" without any casting:

import core.stdc.stdio;

class Node
        printf("%p\n", this);

void main()
    new Node;

/Jacob Carlborg

Reply via email to