>>>>> On Mon, 26 Jun 2000 10:08:21 -0500 (CDT), Autarch <[EMAIL PROTECTED]> said:
> I'll be uploading two new modules to CPAN that I'd like to register if
> possible (CPAN id DROLSKY).
> 1. StackTrace - This provides a stacktrace object very similar to what you
> get from confess or cluck but you don't have to actually issue a
> warning. Plus you can step through the stack and examine the information
> in it (it has all the info caller() provides for each stack level). This
> is primarily used by the next module I'm uploading but has the potential
> to be useful on its own, particularly if you just want to pass around the
> stack for some reason.
Good idea. What about Devel::StackTrace. It will be used to develop
code, not in other situations, so Devel:: seems appropriate.
> 2. Class::Exceptions (also includes the class BaseException internally but
> I don't want to register that). This module lets you 'declare' a
> hierarchical set of exception objects (with any root, not just
> BaseException) at compile time via the 'use' command. It does not
> implement any sort of try/catch syntax as this is already covered
> elsewhere and I don't like it anyway dammit. It could probably be used
> with G. Barr's Error module if you want that stuff.
Last week I suggested to Matt Sergeant for his Exception module:
Maybe call it Exception::Simple, then we can recommend future
implementors of Exception modules to collect their alternatives in
the Exception:: namespace.
How would you like Exception::Class and Exception::Class::Base? I'd
avoid using unregistered root namespaces internally--after all
namespace clashes could happen there and will probably be hard to
diagnose.
> I emailed way back when about these modules but the exception module had a
> different name (Exception) and didn't hear back. I don't feel comfortable
> trying to claim that namespace anyway and this one seems a lot more
> reasonable. With the StackTrace namespace, I think that even though its
> top level this implementation is fairly reasonable as _the_
> implementation. OTOH, I could always change it later if you want.
It isn't unlikely that if there will ever be "official" Perl
exceptions, then they will be in the Exception namespace. For that
reason I'd like to reserve that. But gathering the candidates in one
or a few common directory/ies seems sensible to me.
--
andreas