Why is GC.collect not @safe?

Nick Treleaven nick at geany.org
Wed Aug 2 11:40:42 UTC 2023


Presumably an allocation like `new T` (for a type with a @safe 
constructor) can be made anywhere a call to `GC.collect` can be 
made, which may trigger a collection. So why isn't `GC.collect` 
marked @safe?


More information about the Digitalmars-d-learn mailing list