Very cool. One nit: the wiki defines a trait as follows:
a trait is unit of behavior -- attributes, methods, events, and subviews Is a handler a method, or is it a handler? Logically of course it's just a special case of method. But in contexts like this, should it say, "attributes, methods, events, handlers and subviews"? My comment is more about the semantics of documenting handlers than it is about traits, but I guess it's worth asking here. jrs On Apr 12, 2006, at 7:21 PM, Jim Grandy wrote: > Change 41430 by [EMAIL PROTECTED] on 2006/04/12 16:14:55 *pending* > > Summary:Experimental traits implementation for lps-dev > > New Features:Traits > > Technical Reviewer: ptw (pending) > QA Reviewer: mdavis (pending) > Doc Reviewer: jsundman (pending) > > Documentation:Eventually will be derived from > http://wiki.openlaszlo.org/Traits_Proposal, but remember this is an > experimental feature and will not ship in final form until Legals > ships. > > Details:Added an experimental traits implementation. I debated > whether this belongs in trunk, but I think the benefits outweigh the > risks. This feature will not be final until Legals ships later this > year, so the chief risk is that the semantics will change in the > Legals implementation and people will need to adjust. > > Information about traits can be found at > http://wiki.openlaszlo.org/Traits_Proposal. This checkin implements > just the ability to declare traits in a class definition, not to > declare traits on a single instance. Introspection of traits for > classes is implemented, however. > > Tests:Augmented the test/traits.lzx unit test to cover attributes, > methods, > and subnodes. This unit test currently passes. > > Affected files ... > > ... //depot/lps-dev/WEB-INF/lps/lfc/core/LzClass.as#8 edit > ... //depot/lps-dev/WEB-INF/lps/lfc/core/LzTrait.as#1 edit > ... //depot/lps-dev/WEB-INF/lps/lfc/core/UserClass.as#5 edit > ... //depot/lps-dev/WEB-INF/lps/lfc/glue/LaszloInitiator.as#7 edit > ... //depot/lps-dev/WEB-INF/lps/schema/lzx.rnc#38 edit > ... //depot/lps-dev/test/traits.lzx#3 edit > > > <changeset-41430.zip> _______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
