When I had the same problem in my language, I disabled all unsafe code to be expanded - IO and calling native functions - in such automatic cases inside an editor. A sandbox.
He also forgot the case of ordinary functions being called in the coda. Similar problem as Office VBA startup code.
He also forgot the case of ordinary functions being called in the coda. Similar problem as Office VBA startup code.