[Seaside-dev] thoughts on partial continuations
Paolo Bonzini
bonzini at gnu.org
Wed Feb 4 20:40:35 UTC 2009
> Neither do I. Mixing #ensure: and continuations is a sure way to get
> either leaks or doubly released objects (which means either exceptions,
> or bugs too-much-reminding-of-C).
>
> That seems like "conventional wisdom" to me again. Obviously you can run
> into problems depending on what you put in your ensure block. But I
> don't yet see that:
>
> self inform: 'foo'.
> self releaseAnObject
>
> is any less likely to cause doubly released objects than
>
> [self inform: 'foo'] ensure: [self releaseAnObject]
Of course, but then the ensured block (the argument) is *not* ensured in
practice (just invoked after the #inform: answers), which makes the
latter form actually confusing.
Paolo
More information about the seaside-dev
mailing list