RE: [AD] more asserts

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] more asserts

> I'm not very fond of this one because I think we shouldn't riddle the
> low-level (platform-dependent) code with ASSERTs. They are ok
> at the API
> level because we don't control what the user pass to the
> library, but I think
> that, on the contrary, the internal code is allowed to make
> assumptions on
> the validity of what we pass to it. In other words, the
> high-level code
> should be so ASSERTed as to shield the low-level code.

That's your call, but it sounds a bit presomptuous to say that
only user code can ever pass wrong args, and that we won't,
ever :) I like my code filled with asserts. asserts are cool.

--
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/