develooper Front page | perl.perl6.language | Postings from May 2006

Concurrency: hypothetical variables and atomic blocks

Thread Next
From:
Jonathan Lang
Date:
May 31, 2006 13:46
Subject:
Concurrency: hypothetical variables and atomic blocks
Message ID:
ef30550b0605311345m129643f0id5c58260c86b7466@mail.gmail.com
How does an atomic block differ from one in which all variables are
implicitly hypotheticalized?  I'm thinking that a "retry" exit
statement may be redundant; instead, why not just go with the existing
mechanisms for successful vs. failed block termination, with the minor
modification that when an atomic block fails, the state rolls back?

Also, what can "retry_with" do that testing the atomic block for
failure can't?

-- 
Jonathan "Dataweaver" Lang

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About