Stas Bekman wrote:
3. use just one set /$ModPerl::err(str)?/
4. use one set and shortcut it to /$MP::err(str)?/
How about MP2? I do not wnat to raise the MP1/2/3 debate again but I never saw a yay/nay decision :-)
The argument against numbers in the package names is the same, if the API is well designed (and the underlying libs haven't changed much), most of the code should work just the same under any perl version. .e.g. the package Apache::Peek works identically under mp1 and mp2 and most likely will continue to do so when mp3 comes. So does Apache::DB, Apache::Reload, etc.
So speak up before we started to change everything, tell which one do you like and if you have other ideas.
My reasoning for ModPerl or MP or MP2 is that it is an abstraction similar to DBI. In DBI the real errstr and err(no) come via the DBD.
Same here. The only catch is that once APR:: API will work outside of mod_perl, it's going to be confusing to those developers to use a variation of a "mod_perl" string in the error message.
That's why in the other email I've suggested a happy compromise: simply use a totally different name, e.g. $dollar::err, and hope not to get over someone's namespace, or simply reserve it on CPAN. I actually like that idea. Especially if we make it a dual variable. In fact other projects (e.g., $DBI::err in 2x series that Tim is working on) could adopt it just as the same. It shouldn't interfere with other APIs, as long as you check the value just after the call.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
