Subject: Re: [boost] [Boost.Breakable] Any interest in a Boost Breakable library?
From: Stefan Strasser (strasser_at_[hidden])
Date: 2009-09-06 16:43:38
Am Sunday 06 September 2009 20:46:42 schrieb Pierre Morcello:
> >>>>>I thought you were talking about a set of macros???
> It is a set of macro because there is also a 'breakable if' and also
> 'breakable else'.
> >>>>However, the idea is sufficient for me, I can just declare the macro
> >>>> myself
> Yes, I can understand that : I used to do the same than
> boost::non_copiable.. But I don't want to keep good ideas for myself.
> There is clearly no technical difficulties here. It's more declaring :
> "there is an interesting way of programming some tedius tasks that use
> if/else/ do while contructs everywhere".
I've never seen such a case anywhere, let alone everywhere.
if you need a construct that forms a scope, accomplishes a tasks and then
exists the scope from anywhere in between, that's a function.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk