Subject: | Please improve DOC |
Show quoted text
>If multiple BLOCKs are registered to the same scope, they will be executed in reverse order. Other scope-related things such as local are managed via the same mechanism, so variables localised after calling scope_guard will be restored when the guard runs.
If they are executed in reverse order then 'variables localised after calling scope_guard will be restored *BEFORE* the guard runs'