recursive lambda as a local variable

Zhong Yu zhong.j.yu at gmail.com
Wed Sep 11 09:37:30 PDT 2013


This compiles: (b106)

    class Test
    {
        Runnable r = ()->r.run();
    }

but this doesn't:

    void test()
    {
        Runnable r = ()->r.run();
    }

is that intentional or a bug?

Zhong Yu


More information about the lambda-dev mailing list