Re: gtk2-perl: classname functions



Daniel Lacroix <dlacroix erasme org> writes:

The possible only problem. Is that class will only be registred when we
use them. So if a function return an object which depends on a class not
already used, the type convertion will not work. This just because the
type was not already registred by the class.

To solve this problem, we can declare all type convertion (filling the
hash table) in one file always loaded (for example, Gtk2::_Helpers for
Gtk2 and Gnome2::_Helpers for Gnome2 and other for different projects).
I have no other good idea for this problem.

Maybe, when using gnome2-perl people have to do "use Gnome2", no?
If so, types can be registered in Gnome2.pm.

What we can also do is to have conversion rules with regular
expressions. Those expressions will be placed into the hash table. I
don't find this good because we can easily do mistakes.


-- 
Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/



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