From: Michael R. <re...@eu...> - 2004-02-19 05:30:08
|
Hi Xavier, > The new plugin imon from nico does a very hazardous thing : it registers > a version() function !! I'm sorry it can't be acceptable. With the next > 'soing' redesing it can register imon::version (imon_version) but > version() is not that clear. Right, but how should he know? We didn't finish our discussion about the namespace delimiter.... > PS to Michi : about :: > >>- there is no real 'object/method' system behind, so why try to mimic > > one? > In Perl, for Objets, the syntax is object->method. The '::' delimiter > expresses namespace::function or namespace::variable concept, exactly > lcd4linux claim ;) Hrm... I'm afraid you won. I vote for :: too. Martin? I will try to rewrite the parser as soon as possible. Here's my plan: prepare the parser, rewrite all plugins so that ne namespace is used, but DO NOT IMPLEMENT DYNAMIC LOADING! Why? I want to release 0.9.12 as soon as possible... Two questions: a) how should the namespace look like when it contains only one function? (or "contains itself") I guess this has already been answered: xmms() xmms::filename() b) I think I'll modify the AddFunction call: AddFunction (<namespace> <function> <parameters> <real_function_ptr>) i.e. AddFunction ("xmms", NULL, 2, my_xmms) or AddFunction ("xmms", "filename", 2, my_xmms) Is this ok with you ? bye, Michael -- Michael Reinelt Tel: +43 676 3079941 Geisslergasse 4 Fax: +43 316 692343 A-8045 Graz, Austria e-mail: re...@eu... |