|
Boost : |
Subject: Re: [boost] phoenix::bind
From: Joel de Guzman (joel_at_[hidden])
Date: 2008-10-02 20:33:26
Steven Watanabe wrote:
> AMDG
>
> Joel de Guzman wrote:
>> I wonder though if it's a good idea to separate the signature
>> from the locals:
>>
>> lambda( _x, _y )[ let( _z = 123 )[ ... ] ]
>>
>> seems to be more "idiomatic"? No?
>>
>> In the last case, lambda just takes in the signature. Let "let" do
>> the locals.
>
> Agreed. Unless we mimic C++ default arguments and make it
> so that lambda( _x, _y, _z = 123 )[ ... ] can be called with
> either 2 or three arguments, using 123 for _z if only two
> arguments are passed.
Hmmm, we can support default arguments actually.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk