On 25 Mar 2010, at 16:37, Lukas Kahwe Smith wrote:

> Hi,
> 
> this was just brought up on IRC. my understanding is that traits have no 
> concept of properties, but grafts do (all hidden internally). correct?
Right, the Traits proposal as it is at the moment, avoids the explicit 
discussion of state.
This is not a restriction per se, but could limit the composability of traits.

To ensure composibility, you would have to resort to abstract methods which are 
implemented by the composing class.

Best regards
Stefan



-- 
Stefan Marr
Software Languages Lab
Vrije Universiteit Brussel
Pleinlaan 2 / B-1050 Brussels / Belgium
http://soft.vub.ac.be/~smarr
Phone: +32 2 629 2974
Fax:   +32 2 629 3525


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

Reply via email to