* Chad Granum <exodi...@gmail.com> [2016-01-12 04:20]: > That said, it just occured to me that this can possibly be > accomplished by having a context store $! And $@ when it is obtained, > then restore them when it is released, which would avoid needing to > use local everywhere, and still preserve them for all tools > automatically...
I actually like the magic Kent is wary about in this instance, as it makes it easier for test functions to get this right without each of them having to carry extra boilerplate. But this also means that a test function which explicitly *wants* to change these variables has to fight the framework for it. So maybe there ought to be a mechanism to request that they not be restored on context release. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>