qualification of exec() in when() expressions