[PHP-DEV] SVN Account Request: dominis

2011-01-08 Thread Nandor Sivok
Maintaining the documentation Maintaining an official, bundled PHP extension -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Extensions to traits

2011-01-08 Thread Ben Schmidt
In fact, this is so nice, could I suggest it would be nice to allow other delegation-like forwarding to be done like this? You could have 'use' without a trait even, just like this: use { $queue->add as addToQueue; } Since the properties' object wouldn't be available at compile time, this ext

Re: [PHP-DEV] Extensions to traits

2011-01-08 Thread Ben Schmidt
Hi, Stefan, I think if the other stuff goes ahead, we can probably scrap what I originally proposed here. But perhaps something else would be helpful. I won't comment very specifically on aspects of my original proposal, but will just raise some new ideas for consideration and further thought. I

Re: [PHP-DEV] Extensions to traits

2011-01-08 Thread Ben Schmidt
Hi again, Stefan, Continuing the conversation. On 7/01/11 10:18 AM, Stefan Marr wrote: On 02 Jan 2011, at 13:16, Ben Schmidt wrote: Extension - - - - - I suggest these two problems can be simply solved by introducing two additional uses of the trait keyword: as a scoping keyword and an access

Re: [PHP-DEV] Extensions to traits

2011-01-08 Thread Ben Schmidt
Hi, Stefan, Thanks for considering my ideas so carefully and for your detailed replies. The reason to go with insteadof is that the assignment syntax hides changes that might cause problems. Thus, when you change any of the traits participating in a composition in a way that a conflict would b

Re: [PHP-DEV] Extensions to traits

2011-01-08 Thread Ben Schmidt
Hi, Jonathan, On 7/01/11 4:42 AM, Jonathan Bond-Caron wrote: - New ideas are always welcome That's great to hear! - Don't write long e-mails to a mailing list, write an RFC http://wiki.php.net/rfc?do=register Sure. Once I've digested and responded to Stefan's replies, I'll work on putting

Re: [PHP-DEV] RFC: about class names as values

2011-01-08 Thread Ben Schmidt
I think doing something like this is a good idea for classes and interfaces. Ben. On 7/01/11 1:16 AM, Martin Scotta wrote: Yes, my intention was to only add a magic constant with the class, similar to this namespace Bar { class Foo { const KLASS = __CLASS__; } } namespace Buzz {