(original) (raw)



On Mon, Oct 13, 2014 at 8:07 PM, Chandler Carruth <chandlerc@google.com> wrote:

On Mon, Oct 13, 2014 at 8:07 PM, Xinliang David Li <xinliangli@gmail.com> wrote:
For lambdas, you have more contexts to confuse yourself, so why would a discriminator like '\_' not be helpful here?

Because you cannot attach such a discriminator to the members of the lambda struct. Their names are automatically selected based on capture.

members of lambda struct? Is this a developer's view or a C++ user's view ?

For member variable access in lamdas, it is 'this' that is captured. If I see reference of 'x\_', I will know it is actually 'this-x\_' even in lamdas. Am I missing something?

David