Hi

If I write a c++ lambda function like:

function<int()> doSome()
{
   auto f = []() {
        return 10;
    };
    return f;
}

function<int()> func = doSome();

I wonder what's the rule when emscripten encounters a lambda function.
Will it compile to like a closure function or what ?

Thank you :)

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to