Re: buildable interface testers error



Torsten Schoenfeld <kaffeetisch gmx de> writes:

  Gtk2::Widget->isa ('Gtk2::Buildable');

Ah yes.  I thought of

    Gtk2::Buildable->isa('Glib::Interface')

but that's not jigged up.  Glib::Interface appears in
Glib::Type->list_ancestors('Gtk2::Buildable'), but list_ancestors croaks
if the given type doesn't exist, which is no so friendly for a
conditional ...

+                     croak ("encountered unregistered interface %s",
+                            SvPV_nolen (*svp));

Sounds good.  Or maybe just "no such interface", unless not registering
it at the right time is also a possible or likely way for it to go wrong
...



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