UDA and trait for non-GC managed pointers

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 15 21:14:42 PDT 2016


On Sat, 15 Oct 2016 16:22:35 +0000, Nordlöw wrote:

> Is there a way to check if a pointer is supposed to point to non-GC
> allocated memory?

You can check if it *does* point to GC-allocated memory if you use GC 
internals -- the Pool struct is what you want to look at, and the lookup 
methods associated with it.


More information about the Digitalmars-d mailing list