From: Michal Rokos Date: 2002-04-16T23:03:39+09:00 Subject: Re: RFC - class_added callback Hello, In article <1018912246.993822.25667.nullmailer@picachu.netlab.jp>, Yukihiro Matsumoto wrote: > In message "Re: RFC - class_added callback" > on 02/04/15, Michal Rokos writes: > >| I will be a little rude and answer by question: "What for is >| "method added" and what for "inherited" callback?" The answer is >| the same as for "class_added" callback. > > "method_added" is used for example by Ruby/Gtk to install gtk callback. > "inherited" is used for example by singleton.rb to update "instance" method. > Then, it's your turn. ;-) My turn, hmmm. The problem is that I cannot give where is "class_added" example used, because it's brand new... :-) But I can imagine that it can be handy for: - introspection - logger (to monitor what it happening) - the situation when the "inherited" callback cannot be used - when people need to inform other classes/modules (benefit of different "receiver" than "inherited" has) Uff - this all is a little dumb examples, but hopefully somebody can think of a better example. Michal PS: to all: HELP FOLKS! :-) -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.sh.cvut.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-