Exporting loop pointers directly shares reference across iterations instead of values. This can introduce bugs in code expecting per-iteration values. The exported pointer will reflect the last iteration. To avoid unintended behavior, copy the pointer to a new variable inside the loop before exporting. This captures the value at that iteration. Exporting direct references to mutable loop pointers risks shared state bugs. Copying to locals prevents exporting mutable state.