Subject: error codes and editMethods
From: sam th (sam@bur-jud-118-039.rh.uchicago.edu)
Date: Fri Apr 21 2000 - 01:19:36 CDT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would like to be able to have some of the various functions found in
ap_EditMethods.cpp be able to return error codes, instead of just
true/false.  Currently, they are all of the form 
        static EV_EditMethod_Fn insertData;
where EV_EditMethod_Fn represents UT_Bool, as defined in a complicated
class, EV_EditMethod.  I would like to be able to create a new return type
(say EV_EditMethod_FnE).  However, EV_EditMethod was not designed with
this sort of flexibility in mind (at least as far as I can tell).  I see
four potential options:
1 - Abandon error codes for this purpose.  This should be the last resort.
2 - Convert *all* the functions that use EV_EditMethod to returning error
codes.  *Lots* of work (but I would do it).  
3 - Derive an additional class (or create a new one) for this purpose.
4 - Code some more flexibility into EV_EditMethod.  
Purely theoretically, I like option 4.  However, I am not sure if it can
be done/is a good idea.  Unfortunately, the original developer (jeff) is
no longer as active in AbiWord development.  If someone has insight here,
it would be appreciated.   
           
                                     sam th		     
                                     sytobinh@uchicago.edu
                                http://bur-jud-118-039.rh.uchicago.edu					
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE4//L5t+kM0Mq9M/wRAs1GAKCKXsHJ+tPs/MUtXsKmXn1pzVui/wCfYiy9
ofF3+d7TDb3n5FJSeOUetOc=
=0RHS
-----END PGP SIGNATURE-----
This archive was generated by hypermail 2b25 : Fri Apr 21 2000 - 01:19:35 CDT