On Mon, February 18, 2008 1:27 pm, [EMAIL PROTECTED] wrote:
>  <?php
>  trait ezcReflectionReturnInfo {
>    function getReturnType() { /*1*/ }
>    function getReturnDescription() { /*2*/ }
>  }
>
>  class ezcReflectionMethod extends ReflectionMethod {
>    use ezcReflectionReturnInfo;

So it's just like an include for a re-used body of 'class' code.

Hmmmm.

Why not just allow 'include' here instead?

:-)

Forgive me if I'm missing something subtle/complex here, but I wonder
if a Trait is really the "right answer"...

Yes, the ability to add/exclude specific functions from two Traits is
"gone" with a simple 'include'... But so is the complexity of yet
another language construct...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

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

Reply via email to