On Sat, Apr 18, 2009, Jeff Johnson wrote:

> What do you want? An exception callback from popt? A post-facto getter?

Hmmm... both would be sufficient, of course. For just this single
purpose a callback could be less intrusive. But in general I like C APIs
where each(!) function stores detailed error information in the context
object and then just returns the numerical and less detailed return
code. The caller then can be happy just about the numerical return code
or call a getter to retrieve the detailed error message. So, in the
long-term I would like to see the second one also in POPT...

                                       Ralf S. Engelschall
                                       r...@engelschall.com
                                       www.engelschall.com

______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
Developer Communication List                        rpm-devel@rpm5.org

Reply via email to