From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1840 invoked from network); 7 Jun 2001 15:33:35 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Jun 2001 15:33:35 -0000 Received: (qmail 20981 invoked by alias); 7 Jun 2001 15:33:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 14790 Received: (qmail 20969 invoked from network); 7 Jun 2001 15:33:11 -0000 X-Authentication-Warning: candle.brasslantern.com: schaefer set sender to lantern@shell10.ba.best.com using -f From: "Bart Schaefer" Message-Id: <1010607153157.ZM7731@candle.brasslantern.com> Date: Thu, 7 Jun 2001 15:31:57 +0000 In-Reply-To: <000801c0ef56$acea3530$21c9ca95@mow.siemens.ru> Comments: In reply to "Andrej Borsenkow" "RE: Modules dependencies RE: PATCH: zftp/tcp abstraction" (Jun 7, 5:35pm) References: <000801c0ef56$acea3530$21c9ca95@mow.siemens.ru> X-Mailer: Z-Mail (5.0.0 30July97) To: "Andrej Borsenkow" , Subject: Re: Modules dependencies RE: PATCH: zftp/tcp abstraction MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 7, 5:35pm, Andrej Borsenkow wrote: } } No, I believe, the simplest solution is to have modele.dep for every } module.so. There may be some other things to put into (think about } autoloaded stuff - it would enable you to just drop module into directory } and let zsh scan $module_path on startup to add autoloaded objects) That is exactly what I would NOT want to have happen. Can you imagine the confusion if zsh automatically discovered that `mv' should be loaded from the files module? I don't want zsh automatically picking up any module I haven't explicitly told it about, thank you very much. } One question - I do not quite understand logic in load_module. It looks like } } if module not found } load module } load module } } One of these 'load module' looks redundant? Look closely at the `if module not found' block. It's possible that the module may be linked but not loaded (no "handle") in that block. In that case a second call to load_module() will find the module, but still needs to perform the actual loading. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net