Re: [PATCH] add bidi support



muppet said:

Thierry Vignaud said:
"Ross McFarland" <rwmcfa1 neces com> writes:

the last two needed to take (and ignore) class names.

so i'll to reverse my s/(Gtk2::Widget)->(\w*direction)/\1::\2/ since
xs tree follow inline tree regarding this issue :-(

any function which needs to be called with a fully-qualified Package::name()
syntax instead of the Package->name() syntax is an implementation bug in the
bindings.

rationale: the former syntax does not allow client code to use @ISA to
override and extend class methods, whereas the latter does.

e.g.:

  package FreakyStuff;

  our @ISA = qw/ Gtk2::Widget /;

  sub set_text_direction {
          # do other stuff, like log the change or
          # make changes in child libraries
          shift->SUPER::set_text_direction (@_);
  }

  package main;

  FreakyStuff->set_text_direction (...);


i don't own it, but i've looked at it in the book stores several times. its
the book i really wish i had a couple years about, but now half of it is old
hat. it talks about all of these sort of things.

Learning Perl Objects, References & Modules:
    http://www.oreilly.com/catalog/lrnperlorm/

-rm



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