
On Tue, Oct 27, 2009 at 8:32 PM, Domagoj Saric <dsaritz@gmail.com> wrote:
"Beman Dawes" <bdawes@acm.org> wrote in message news:a61d44020910200815kedf3976t6e96a67e2f453271@mail.gmail.com...
i just wanted to make a proposal on a very related subject (an expension/generalization of the [system] error_code concept) so i'll post it here instead of starting a new thread:
one of the 'selling points' of exceptions is that they, unlike error return codes, cannot be (unintentionally) ignored/forgotten...
well...we could 'smarten' our error codes into error objects that 'complain' if they were not 'inspected' before they are destroyed... ...the 'complaint' method can be made a matter of policy...assert, throw, log ...
Meyers or Alexandrescu or ___? proposed something similar once. Yet I can't find the article... Tony