C++ Logo

std-proposals

Advanced search

[std-proposals] finally keyword

From: Abdullah Qasim <iamminecraftredstoner_at_[hidden]>
Date: Sun, 1 May 2022 07:52:31 +0000
try {

  something();

} catch (...) {

  std::cerr << "exception caught!!";

}



std::clog << "No except caught!";



finally { // already Microsoft extension, but

  cleanup(); // should be in core language

}



Received on 2022-05-01 07:52:34