Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue 19381 - capture pointer in nested function should not be called "this" #8933

Merged
merged 1 commit into from
Nov 9, 2018

Conversation

rainers
Copy link
Member

@rainers rainers commented Nov 9, 2018

rename the context pointer to the closure or the outer functions stack frame to '__capture'

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @rainers!

Bugzilla references

Auto-close Bugzilla Severity Description
19381 normal capture pointer in nested function should not be called "this"

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#8933"

src/dmd/func.d Outdated Show resolved Hide resolved
…lled "this"

rename the context pointer to the closure or the outer functions stack frame to '__capture'
@dlang-bot dlang-bot merged commit 9f1454b into dlang:master Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants