e to just that trait, flattening would then
require some kind of "alpha-rename" for even stateless traits in some cases.
--
"Joshua Thompson" <[EMAIL PROTECTED]>
<http://www.schmalls.com>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
the
original method name, which could be the same body, a method defined in
a different trait, or the method overridden by the client class.
--
"Joshua Thompson" <[EMAIL PROTECTED]>
<http://www.schmalls.com>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
know of a way
to make a method called {'Some::Name::Space::A::a'} inside the class in
userspace (even though the interpreter can obviously handle it.
--
"Joshua Thompson" <[EMAIL PROTECTED]>
<http://www.schmalls.com>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
t`, `add`, or even `+`.
I also have an idea for aliasing that I don't think anyone has thought
of yet: reusing the `clone` keyword like so:
Cloning I think gives us the correct idea of what is actually happening:
the entire body of method foo1 is copied to a new method called barFoo1.
Als
e 'A', which would not break the
trait's internal method call, but it seems less obvious to me.
--
"Joshua Thompson" <[EMAIL PROTECTED]>
<http://www.schmalls.com>
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
oute of stateful traits
and forced the definition of which scope in the class. I also tried to
keep the number of keywords to 1 (`trait`).
I will keep working on it, and hopefully post it tomorrow for review.
--
"Joshua Thompson" <[EMAIL PROTECTED]>
<http://www.schmalls.co
ow the traits
will be included into the class.
Only simple code examples have been given, and questions will surely
arise over what will happen if you include traits a certain way. In this
case, more explanation and example code may be required.
Bibliography
====
.. [1] Alexandre Bergel, St