Subject: Re: [boost] [transact] code in sandbox
From: Vicente Botet Escriba (vicente.botet_at_[hidden])
Date: 2010-02-12 09:49:28
> Zitat von Vicente Botet Escriba <vicente.botet_at_[hidden]>:
>> With my macros or with yours, the user needs to be aware that the
>> transaction block is included on a internal loop.
> not necessarily. when you "return" from a transaction scope, commit()
> isn't reached, so the transaction is not committed.
> in this case:
> return 1;
> }while(a++ == 5);
> you don't expect that the side effects of the while-clause still takes
> effect. so I don't see a problem in the behaviour that "return" omits
> the commit either.
> you could of course offer a macro like COMMIT_AND_RETURN.
How the user can return successfully with your macros?
-- View this message in context: http://old.nabble.com/-transact--code-in-sandbox-tp27515535p27564662.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk