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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to