On 06 Jan 2011, at 15:33, Johannes Schlüter wrote:

> On Thu, 2011-01-06 at 14:38 +0100, Stefan Marr wrote:
>> 
>> On of those things is that you actually use ReflectionClass to reflect
>> on a trait.
>> That is really an implementation detail, and should be changed to not
>> confuse anyone on a conceptional level. We should not expose that kind
>> of engine/implementation detail.
> 
> This is the same with interfaces. What does class_exists('some_trait')
> do? - I assume that returns true too.
It does return false for interfaces, that should be consistent and return false 
for traits, too.

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