Implementation of non-owning pointer to global data (static, gc, ...).
scope global ptr can be assigned/initialized with non-scoped raw pointer/reference or with other scope GlobalPtr.
Template parameters:
_Type type of managed object
scope GlobalPtr!long ptr; { scope GlobalPtr!long x = new long(42); ptr.opAssign(x); } { static long val = 42; scope GlobalPtr!long x = &val; ptr = x; }
See Implementation
Implementation of non-owning pointer to global data (static, gc, ...).
scope global ptr can be assigned/initialized with non-scoped raw pointer/reference or with other scope GlobalPtr.
Template parameters:
_Type type of managed object