Return-Path: Delivered-To: apmail-perl-dev-archive@perl.apache.org Received: (qmail 73687 invoked by uid 500); 3 Jun 2003 07:50:06 -0000 Mailing-List: contact dev-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list dev@perl.apache.org Received: (qmail 73671 invoked from network); 3 Jun 2003 07:50:05 -0000 Received: from erato.logilune.com (HELO mail.logilune.com) (195.154.174.52) by daedalus.apache.org with SMTP; 3 Jun 2003 07:50:05 -0000 Received: from stason.org (localhost.logilune.com [127.0.0.1]) by mail.logilune.com (Postfix) with ESMTP id 08BCD78E92; Tue, 3 Jun 2003 09:50:16 +0200 (CEST) Message-ID: <3EDC532A.3000200@stason.org> Date: Tue, 03 Jun 2003 17:50:02 +1000 From: Stas Bekman Organization: Hope, Humanized User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Geoffrey Young Cc: dev@perl.apache.org Subject: Re: a new stacked handlers paradigm References: <3ED79AFE.4000900@modperlcookbook.org> <3EDA94E5.3010803@stason.org> <3EDBB34F.1020404@modperlcookbook.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Geoffrey Young wrote: > ok, I took another stab at it. this one is much simpler - it only touches > modperl_callback.c. I didn't see the reason for an enum, and there's no > point in moving the logic to lookup_handlers(), since there's nothing > that lookup_handlers() knows that modperl_callback() didn't tell it. > I'm not too sure about whether that switch statement is the way to go, > but it's another iteration for everyone to discuss at least. oh, and > the test is more self contained now, too :) I prefer to extend modperl_handler_lookup_handlers to pick up this information from autogenerated code, same as it's done with desc. Why clutter the maintenance and run-time overhead? It's correct that you don't need to call lookup_handlers() and you have all the info, but you still need to add a switch and ugly sets of ifs. Since you are already calling modperl_handler_lookup_handlers why not pick the information from there and avoid any branching at all? See the other thread I've spawned from this one. We probably want to handle VOID types differently as well, so it's a perfect addition to the work you do. in that case the run_all var must be a tri-state (that's why I've suggested enums). Also the test(s) need indentation fixing. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:stas@stason.org http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org For additional commands, e-mail: dev-help@perl.apache.org