Variable::Magic-based guard objects