On Tue, Mar 9, 2010 at 10:16 PM, Marijn Haverbeke marijnh@gmail.com wrote:
I'd say something like this works best as a project-local hack, rather than part of the library interface. The user can perfectly well do (execute "begin") outside of the macro, causing the *transaction* variable to no longer reflect the actual situation.
Maybe with a better docstring explicitly stating that it is limited to only knowing of transactions initiated with the WITH-TRANSACTION macro.