On Thu, 2011-11-03 at 21:12 +0000, Andrew Ross wrote: > > + Public API. Replace plexit with plwarn and continue with the > > plot when that is possible or do a quick return otherwise. If > > our interactive users get a plwarn message when they make a > > mistake, and in addition no plot when it is a really bad > mistake > > that should be sufficient, and I think a return code in > addition > > would be overkill.
Getting no plot would be sufficient for a human user watching a screen, although if the application was running from a gui they might not see any plwarn-generated message that got written to stderr; but let's say this is up to the application to redirect such messages to a status bar or other area so the user can get feedback as to what went wrong. However, for some piece of software running without user intervention, e.g., to generate plots offline for later use, real-time web displays, etc., it needs a proper error-flag I think so that it can take corrective action. > The large advantage of this approach is no > > API change would be necessary. As Andrew notes, changing return values from void to int shouldn't stop legacy code from compiling and running, I think. Steve -- +-------------------------------------------------------------------+ Professor Steven J Schwartz Phone: +44-(0)20-7594-7660 Head, Space & Atmospheric Physics Fax: +44-(0)20-7594-7772 The Blackett Laboratory E-mail: s.schwa...@imperial.ac.uk Imperial College London Office: Huxley 6M67A London SW7 2AZ, U.K. Web: www.sp.ph.ic.ac.uk/~sjs +-------------------------------------------------------------------+ ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel