GlobalPtr.this

Constructs a GlobalPtr without managed object. Same as GlobalPtr.init

Examples

{
    GlobalPtr!long x = new long(42);

    assert(x != null);
    assert(x.get == 42);
}

{
    static const long i = 42;
    GlobalPtr!(const long) x = &i;

    assert(x != null);
    assert(x.get == 42);
}

Meta