C++11 lambdas

Rémi Forax forax at univ-mlv.fr
Sun Mar 14 14:00:54 PDT 2010


Le 14/03/2010 21:25, Stefan Schulz a écrit :
> Am 14.03.2010 17:14, schrieb Rémi Forax:
>    
>> A function that takes an int and returns an int:
>> int(int)
>>      
> If "call" is a parameterless method as well as the name of a class in
> scope, what would the following resolve to:
> call()
>    

Perhaps I'm wrong but the context after "call()"
seem sufficient to disambiguate.

call() a; // a declaration
call();    // a method call

>    
>> curry!
>> R() throws E (R(A) throws E, A) curry = ...
>>      
> How are multiple exceptions to be defined for the throws clause? Using a
> pipe? Using parens?
>    

I would prefer pipe,
generics syntax already use & for a similar problem.

> Stefan
>    

Rémi



More information about the lambda-dev mailing list