Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16080 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51961 invoked by uid 1010); 25 Apr 2005 16:40:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51946 invoked from network); 25 Apr 2005 16:40:25 -0000 Received: from unknown (HELO calligram.co.uk) (127.0.0.1) by localhost with SMTP; 25 Apr 2005 16:40:25 -0000 X-Host-Fingerprint: 212.69.217.33 smtp-relay04.x-mailer.co.uk Linux 2.4/2.6 Received: from ([212.69.217.33:37960] helo=smtp-relay04.x-mailer.co.uk) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 5B/60-22714-77D1D624 for ; Mon, 25 Apr 2005 12:40:23 -0400 Received: from [212.69.210.169] (helo=emarket.dsvr.co.uk) by smtp-relay04.x-mailer.co.uk with esmtp (Exim 4.30) id 1DQ6d9-00052W-7w; Mon, 25 Apr 2005 17:40:19 +0100 Received: from variable ([82.153.149.65]) (authenticated (0 bits)) by emarket.dsvr.co.uk (8.11.7/8.11.7) with ESMTP id j3PGeIW16081; Mon, 25 Apr 2005 17:40:18 +0100 Organization: Calligram Ltd To: Christian Schneider Date: Mon, 25 Apr 2005 17:48:32 +0100 User-Agent: KMail/1.7.1 Cc: internals@lists.php.net References: <200504251330.27509.duncan@calligram.co.uk> <426D1ACB.3070609@cschneid.com> In-Reply-To: <426D1ACB.3070609@cschneid.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200504251748.32569.duncan@calligram.co.uk> Subject: Re: Attributes support proposal From: duncan@calligram.co.uk (Duncan McIntyre) It's different because in your example there is no way of knowing that $AllowableValues refers to $WidgetType. You would have to explicitly code that relationship into every class which needed to know it. On Monday 25 April 2005 5:28 pm, Christian Schneider wrote: > Duncan McIntyre wrote: > > http://www.calligram.co.uk/oss/Attributes > > In your example I fail to see how > @[ WidgetType("Select"); > AllowableValues(array("Current","Savings")); ] > is different from the good old > var $WidgetType = "Select", $AllowableValues = array("Current", "Saving"); > apart from looking weird and scary (-:C > > Just my $.02, > - Chris Duncan