|
Boost : |
Subject: Re: [boost] [local] local functions ready for review
From: Lorenzo Caminiti (lorcaminiti_at_[hidden])
Date: 2011-01-10 16:34:06
On Mon, Jan 3, 2011 at 12:58 PM, Edward Diener <eldiener_at_[hidden]> 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/index.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/
Let me know what you think.
Thanks.
-- Lorenzo
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk