On Mon, 15 Dec 2003, Darin McBride wrote:

> I like it, although I'd rather see that warning gone from the core
> package.

I also think it should go (or add an option to disable it ?)


> Another alternative is to put in your C::A-derived package:
>
> sub run {
>   my $self = shift;
>   local $SIG{__WARN__} = ...;
>   $self->SUPER::run(@_);
> }
>
> This allows you to localise as much as possible.  However, given the
> design of the framework, I don't see there being much advantage to
> this over your solution.

This is nicer but actually I think mine localises better.

>
> For more robustness, you need to check what the current warn is, and,
> if defined, call it instead of "warn $_[0]".  But that's probably
> overkill for most of us until perl6 where it becomes easy (I think).

I though I was doing that.
What do you mean if not what I wrote ?

Gabor


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to