Re: [PHP-DEV] Traits and Properties

2010-12-12 Thread Sebastian Bergmann
On 12/12/2010 01:24 AM, Stefan Marr wrote: If you want to discourage attribute declaration in a trait, don't allow it at all. Not allowing it is not an option as far as I can tell. Good! :-) -- Sebastian BergmannCo-Founder and Principal Consultant

Re: [PHP-DEV] Traits and Properties

2010-12-12 Thread Stefan Marr
Hi Nathan: On 11 Dec 2010, at 19:35, Nathan Nobbe wrote: Regarding visibility modifiers, why not carry them over from the trait directly, private in the trait definition results in private in the class definition. The problem will be hopefully more clear in the following example: trait

RE: [PHP-DEV] Traits expecting interfaces implicitly leads to expensive runtime checks

2010-12-12 Thread Jonathan Bond-Caron
On Sat Dec 11 10:25 AM, Stefan Marr wrote: http://wiki.php.net/rfc/horizontalreuse#requiring_composing_class_to_impleme nt_interface Are there any objections to implementing this? It's not a bad idea, though I haven't found a strong need for it in the way I plan to use traits. It also

[PHP-DEV] Re: ts_free_thread() frees only temporary in multiple parallel threads

2010-12-12 Thread Gary Zipfel
(Referring to my posts: #50838 and #50916) Well although I got the feeling no one cares, I finally found a solution to my problem!!! Combining my patch (from post #50916) with the php_embed2 module makes everything working great in multi-threaded usage. The normal php_embed module does not seem

Re: [PHP-DEV] Traits expecting interfaces implicitly leads to expensive runtime checks

2010-12-12 Thread Nathan Nobbe
On Sun, Dec 12, 2010 at 7:25 AM, Jonathan Bond-Caron jbo...@openmv.comwrote: On Sat Dec 11 10:25 AM, Stefan Marr wrote: http://wiki.php.net/rfc/horizontalreuse#requiring_composing_class_to_impleme nt_interface Are there any objections to implementing this? It's not a bad idea,