Re: Traits and static variables

From: Date: Wed, 09 Jun 2010 16:00:17 +0000
Subject: Re: Traits and static variables
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-48709@lists.php.net to get a copy of this message
On 05.06.2010, at 22:47, Stefan Marr wrote: > Hi: > > Was just thinking about some details of the traits implementation. > > From my perspective, static variables in methods should work like the method would have been > actually implemented in the class using the traits. Thus, static variables should be independent for > the different traits usages. > > Any thoughts on that? i agree. the mantra is traits are engine level automated copy&paste. regards, Lukas Kahwe Smith mls@pooteeweet.org

« previous php.internals (#48709) next »