[squeak-dev] Squeak 4.6: MonticelloForTraits-fbs.1.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 5 20:13:59 UTC 2015

Chris Muller uploaded a new version of MonticelloForTraits to project Squeak 4.6:

==================== Summary ====================

Name: MonticelloForTraits-fbs.1
Author: fbs
Time: 9 August 2013, 8:46:48.716 am
UUID: 160be615-5ab7-4148-a7cb-60dd629ab085

Initial commit. This package extends Monticello to support Traits.

It exists so that one may freely unload Monticello, Traits, or both, in an image.

==================== Snapshot ====================

----- Method: Trait>>asClassDefinition (in category '*MonticelloForTraits') -----
	^Smalltalk at: #MCTraitDefinition ifPresent:[:aClass|
			name: self name
			traitComposition: self traitCompositionString
			category: self category 
			comment: self organization classComment asString
			commentStamp: self organization commentStamp].!

----- Method: Trait>>classDefinitions (in category '*MonticelloForTraits') -----
	| definitions |
	definitions := OrderedCollection with: self asClassDefinition.
	(self hasClassTrait
		and: [self classTrait hasTraitComposition
		and: [self classTrait traitComposition isEmpty not]])
			ifTrue: [definitions add: self classTrait asMCDefinition].
	^definitions asArray!

More information about the Squeak-dev mailing list