On Mon, 18 Feb 2008, Richard Lynch wrote: > 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?
Because include happens during runtime, not compile time. regards, Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php