Hi Simas:

Thanks for sending me the test cases.
I checked them in, and surprise surprise: it actually was already completely 
implemented. I didn't had to touch any code...
So the missing bit was being more explicit in the RFC.
I added a section and an example based on your Singleton code.

Now I also remember what the reference to the static modifier was about.

You cannot use it to change it for a standard method.
That means, if you have a normal method, you cannot make it static however, you 
can for instance make a public method private, or add an alias for it. That was 
what that statement was referring to.

http://wiki.php.net/rfc/horizontalreuse

Hope that helps
Best regards
Stefan

On 17 Nov 2010, at 08:55, Stefan Marr wrote:

> Hi Simas:
> 
> On 17 Nov 2010, at 07:32, Simas Toleikis wrote:
>> Alright then, I am sure someone will find more uses for static methods in
>> Traits like factories/utilities (especially if traits can be made to work
>> with late static binding).
>> 
>> I assume this will be implemented in one way or another before or after
>> first 5.4 alphas! :)
> Send me the tests/phpt-files for it, and I will have a lock at it over the 
> weekend.
> 
> 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
> 

-- 
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