|
Boost : |
From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2004-03-07 23:11:00
"Jonathan Turkanis" <technews_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk