Run-Time vs. Config-time error checking controls
Mark Miller
miller86 at llnl.gov
Thu Oct 21 12:53:26 CDT 2010
On Thu, 2010-10-21 at 10:26, Jason Kraftcheck wrote:
> > All the arguments for strict checking seem
> to center around helping developers avoid accidentally doing things that are
> not guaranteed to work with all implementations. While people may think
> that this is a good practice, mandating that our implementation conform to
> this practice seems well beyond the scope of the API specification.
Why do we define iBase_ErrorType in iBase.h, then? Why don't we just let
all implementations decide what error codes to return or whether to
return any error code at all when the caller does something wrong or
something they shouldn't have or something that is 'not portable across
all implementations' (look for a follow-up email on this).
I think specifying how the API responds to 'wrong' or 'erroneous'
actions by the caller is part of the API specification. In some cases,
its essential for implementors and users alike to know this. In other
cases, maybe the current issue at hand, it is not as critical.
Mark
--
Mark C. Miller, Lawrence Livermore National Laboratory
================!!LLNL BUSINESS ONLY!!================
miller86 at llnl.gov urgent: miller86 at pager.llnl.gov
T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-8511
More information about the tstt-interface
mailing list