[Pdx-pm] Poll: traits
publiustemp-pdxpm at yahoo.com
Sat Nov 19 12:47:40 PST 2005
--- Marvin Humphrey <marvin at rectangular.com> wrote:
> Would it be fair to describe a Trait as a base class that doesn't
> allow its methods to be overridden without an explicit directive?
Sort of. However, the methods are actually "flattened" into the class
which uses the traits. Thus, you're not inheriting the methods. This
is a nice performance boost.
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
More information about the Pdx-pm-list