I want to compute pointers in a way that is not scannable by a conservative collector for performance reasons. So I need to make sure that the faster code isn't chosen when people use GC using "static if"s.
Compile time check for GC?
Ola Fosheim Grøstad via Digitalmars-d-learn Tue, 26 Jan 2021 05:15:27 -0800
Is there some way for library authors to test whether a GC is
present at compile time? @nogc just means that my code does not
depend on a GC, but it doesn't tell the compiler that my code is
incompatible with GC.
- Compile time check for GC? Ola Fosheim Grøstad via Digitalmars-d-learn
- Re: Compile time check f... Steven Schveighoffer via Digitalmars-d-learn
- Re: Compile time che... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re: Compile time... Steven Schveighoffer via Digitalmars-d-learn
- Re: Compile ... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re: Compile time check f... Kagamin via Digitalmars-d-learn
- Re: Compile time che... Ola Fosheim Grøstad via Digitalmars-d-learn
- Re: Compile time... Kagamin via Digitalmars-d-learn