1

Topic: Lambda solves a question of modification of behavior at a composition?

So, now with presence of lambdas it makes sense to define behavior not in methods and in lambdas which, then it is possible  to change for any? For example for avoidance of inheritance we now can , and that we overloaded that now it is possible defines as std:: fucntion at a field of a class earlier and to substitute dynamic on the one hand a perversion doing of with ++  language with another  does not suffer

2

Re: Lambda solves a question of modification of behavior at a composition?

K> on the one hand a perversion doing of with ++  language with another  does not suffer For  language is necessary Eval which in With ++ and does not smell.

3

Re: Lambda solves a question of modification of behavior at a composition?

Hello, Kingofastellarwar, you wrote: K> so, now with presence of lambdas it makes sense to define behavior not in methods and in lambdas which, then it is possible  to change for any? K> for example for avoidance of inheritance we now can , and that we overloaded that now it is possible defines as std:: fucntion at a field of a class earlier and to substitute dynamic Sense is if there is a need to change  dynamic or if methods of a class which are implied to be virtual, among themselves are not connected on sense (i.e. not  the separate interface). Otherwise it is better to select the separate interface and to inherit  from it since it expresses semantics is better and raises  the code.

4

Re: Lambda solves a question of modification of behavior at a composition?

Hello, turbocode, you wrote: K>> on the one hand a perversion doing of with ++  language with another  does not suffer T> For  language is necessary Eval which in With ++ and does not smell. Smells, for example Cling, in which R EPL

5

Re: Lambda solves a question of modification of behavior at a composition?

K>>> on the one hand a perversion doing of with ++  language with another  does not suffer T>> For  language is necessary Eval which in With ++ and does not smell. EP> smells, for example Cling in which R EPL it is obvious that the built in support eval in With ++ without indirect libraries meant.

6

Re: Lambda solves a question of modification of behavior at a composition?

Hello, turbocode, you wrote: EP>> Smells, for example Cling in which R EPL T> it is obvious that the built in support eval in With ++ without indirect libraries meant. It is completely not obvious. If to enter similar artificial restrictions so the C ++ generally without the compiler remains for all of them "indirect" eval in incremental adding and code performance - here Cling it and gives Sense.

7

Re: Lambda solves a question of modification of behavior at a composition?

EP> it is completely not obvious. If to enter similar artificial restrictions so the C ++ generally without the compiler remains for all of them "indirect" support at level of syntax With ++ Meant. EP> eval in incremental adding and code performance - here Cling it also gives Sense. Not clearly as it interacts with an exterior surrounding, for example as  external functions of classes and to use them in a script.

8

Re: Lambda solves a question of modification of behavior at a composition?

Hello, Kingofastellarwar, you wrote: K> so, now with presence of lambdas it makes sense to define behavior not in methods and in lambdas which, then it is possible  to change for any? Hardly it is always convenient. When the behavior is defined by two methods, which else have the general context that, to drag tuple with two function and one shared_ptr <void>, holding this general context? K> doing from with ++  language but by the way yes, sometimes it is convenient to try at first on lambdas, and then to make "in normal way"