Hi!
Nice RFC, just an idea for an alternative syntax (added to the RFC as #2):property Hours { get { return $this->seconds / 3600; } set { $this->seconds = $value * 3600; } // The variable $value holds the incoming value to be "set" } class TimePeriod { private $seconds; public [Hours] $hours1; public {use Hours;} $hours2; }
If you change "property" to "class" or "trait" and "get" to "__get" you need almost no new syntax :)
-- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
