Re: [RFC] Glib::filename_(to|from)_unicode => Glib->filename_(to|from)_unicode?
- From: Torsten Schoenfeld <kaffeetisch web de>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: [RFC] Glib::filename_(to|from)_unicode => Glib->filename_(to|from)_unicode?
- Date: Thu, 08 Jan 2004 14:37:22 +0100
On Wed, 2004-01-07 at 23:12, Marc Lehmann wrote:
If everything in a certain module used one syntax and only two methods
used another one, *that* would be awkward!
And one flaw I forgot to point out is that your assumptions for that
argument are wrong: these _are_ no methods, which is the whole point.
Wrong choice of words. I intended to say that anything you can call in
the Glib and Gtk2 modules has a class argument, effectively turning it
into Perl's idea of methods: functions with class arguments.
There are many examples:
* Glib::install_exception_handler, Glib::remove_exception_handler
* Glib::log, Glib::Log::set_handler, Glib::Log::remove_handler
* Glib::Timeout::add, Glib::Idle::add
* Glib::IO::add_watch
* Glib::Type::register
* Gtk2::init
* Gtk2::events_pending, Gtk2::main, Gtk2::main_iteration,
Gtk2::main_quit
etc.
As recently bastardized, they work in the Glib class object, which makes
pretty little sense.
Your code has not been modified yet.
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]