Re: buildable interface testers error




On Nov 1, 2008, at 2:38 PM, Torsten Schoenfeld wrote:

Torsten Schoenfeld wrote:
 package Foo;
 use Glib::Object::Subclass
   'Glib::Object',
   interfaces => [ 'Gtk2::CellLayout' ];
 use Gtk2;

By the way: with the patch applied, this warning is printed:

encountered unregistered interface Gtk2::CellLayout at /[prefix]/ Glib/Object/Subclass.pm line 228

Is it possible to make it report the location in the user's code? I tried these two but to no avail:

  $Carp::Internal{$_}++ for __PACKAGE__;

  push @Carp::CARP_NOT, __PACKAGE__;

Unfortunately, that's because the Perl_croak() called from C/XS code doesn't know how to use the croak() subroutine defined in Carp.pm. You'd either have to call back up to perl code or roll your own stack unwinder.


--
Teeter tots are shaped like marshmallows.
  -- Zella.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]