
On 1/10/2011 4:34 PM, Lorenzo Caminiti wrote:
On Mon, Jan 3, 2011 at 12:58 PM, Edward Diener<eldiener@tropicsoft.com> wrote:
On 1/3/2011 12:22 PM, Lorenzo Caminiti wrote:
Hello all,
A few months ago, I probed for interest in a library for local functions with Boost.ScopeExit's variable binding. Based on that discussion, I have now implemented the Boost.Local library.
I have uploaded the source files boost-local_0_1_0-818.zip in the Boost Vault under Function Objects:
http://www.boostpro.com/vault/index.php?&direction=0&order=&directory=Function%20Objects
The documentation on the web:
http://contractpp.sourceforge.net/boost-local_0_1_0-818/libs/local/doc/html/...
Any comment?
I can understand the potential usefulness of local functions and local exits, but it seems local blocks serve little purpose, other than an easier syntactical notice, because it is a macro, over a simple block using { } which can also of course access variables in the enclosing scope. I do see where one can bind variables in local blocks in a few ways but that seems to offer little over just normal C++ blocks.
Nonetheless your library seems interesting. Would you consider putting it in the sandbox also ( or instead ) ? That way, when and if you need to update it, others can pick up the updates via SVN.
Hi all,
I have uploaded Boost.Local into the Boost SVN sandbox: https://svn.boost.org/svn/boost/sandbox/local/
That is great ! It is much easier for me to deal with sandbox libraries than possible Boost libraries in any other format. I will try it out and let you know what I think of it.