Editorial question111.1K views3,511 votes0 answers1,562 following
AI-generatedGC pragma on ref type: does disabling GC propagate to referenced objects?
When the gc pragma is applied to a ref type in Nim, the compiler requests that instances of that type are not tracked by the garbage collector. The language reference does not clarify whether this setting should also prevent the collector from tracing the objects that the reference points to. This ambiguity matters because a ref marked {.gc:"none".} may stil