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

std: replace std::unstable::finally with a RAII finally! macro #11905

Closed
wants to merge 1 commit into from

Commits on Jan 31, 2014

  1. std: replace the finally closure with a finally macro.

    This adds a `finally!` macro similar to D's scope statement. It runs a
    user specified piece of code in the destructor of a stack variable to
    allow guaranteeing that it runs, even on failure.
    huonw committed Jan 31, 2014
    Configuration menu
    Copy the full SHA
    4bfb7e4 View commit details
    Browse the repository at this point in the history