I would like to use scope guards but in the guard I need to get access to some local variables at the end of the routine. This doesn’t really seem to make sense as to how it would work, because their values depend on the exact point where the scope guard is called at in the last, exiting line(s) of the routine. Am I misunderstanding?