
"Jonathan Turkanis" <technews@kangaroologic.com> writes: | > Lambdas have more serious problems to be solved first, though, | > already being discussed elsewhere in this thread. | > BLL lambdas are unsafe in many ways, e.g. references | > to free variables can become dangling. This does not occur often in | > practice, as BLL lambdas are seldom stored anywhere, and are gone | after | > the evaluation of the enclosing full expression anyway. | | I think lambda's are rarely stored because it's hard calculate their | types. This could raise problems if yet another proposed use of auto | is accepted: | | auto x = [complex lambda expression]; Yes, and that should be anticipated. People have already been storing function objects (in the traditional C++ sense), there is no reason to believe they would not attempt the same thing with lambdas. -- Gaby