Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BE570F7B8 for ; Thu, 11 Apr 2013 13:08:48 +0000 (UTC) Received: (qmail 91887 invoked by uid 500); 11 Apr 2013 13:06:56 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 90725 invoked by uid 500); 11 Apr 2013 13:06:55 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 90359 invoked by uid 99); 11 Apr 2013 13:06:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 13:06:54 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.47.247.105] (HELO csmtp5.one.com) (195.47.247.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Apr 2013 13:06:47 +0000 Received: from [192.168.1.33] (3304ds3-soeb.0.fullrate.dk [90.184.126.17]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by csmtp5.one.com (Postfix) with ESMTPSA id 11DD74013E916 for ; Thu, 11 Apr 2013 13:06:27 +0000 (UTC) Message-ID: <5166B552.3060107@cord.dk> Date: Thu, 11 Apr 2013 15:06:26 +0200 From: Daniel Gruno User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: dev@httpd.apache.org Subject: Re: svn commit: r1466669 - /httpd/httpd/branches/2.4.x/STATUS References: <20130410210152.1EFA423888FE@eris.apache.org> <5165D7D5.8010200@apache.org> <51668AD0.2050502@cord.dk> <51669165.6000101@apache.org> <516693FE.7060003@cord.dk> <5166AE5B.2080405@apache.org> In-Reply-To: <5166AE5B.2080405@apache.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 04/11/2013 02:36 PM, Guenter Knauf wrote: > On 11.04.2013 12:44, Daniel Gruno wrote: >> it's a userdata object, so you can't iterate over the key/value pairs, >> you can only access the values directly if you know the key. > I was hoping that its possible to create a table from the userdata with > some Lua magic, and then iterate over the table ... > > oh, and some more questions: > whats the benefit of having banner(), port() and started() as functions > (or methods)? > isnt it fine accessing these like f.e. r.filename? > r:put(r.banner) would be even shorter than r:put(r:banner()) ... > > and why is it: > r.module_info(module_name) > and not: > r:module_info(module_name) > > ?? > > I'll look into adding them as variables instead :) r.module_info is because it doesn't need the request_rec object to get module information (foo:bar(baz) is short for foo.bar(foo, baz) ). I admit, it can be a bit confusing, and perhaps we should consider turning it into r:module_info for the sake of conformity, but I don't consider it a bug or anything that would stall a backport. With regards, Daniel.