The Inbox: Traits-jr.309.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Traits-jr.309.mcz

commits-2
A new version of Traits was added to project The Inbox:
http://source.squeak.org/inbox/Traits-jr.309.mcz

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

Name: Traits-jr.309
Author: jr
Time: 1 March 2017, 5:00:38.523078 pm
UUID: 32a4e214-747f-cc42-8b8d-a95182963d05
Ancestors: Traits-jr.308

environments for Traits

Monticello-jr.663 needs this to create traits

=============== Diff against Traits-jr.308 ===============

Item was added:
+ ----- Method: ClassDescription class>>newTraitNamed:uses:category:in: (in category '*Traits') -----
+ newTraitNamed: aSymbol uses: aTraitCompositionOrCollection category: aString in: anEnvironment
+ "Creates a new trait. If no current trait implementation
+ is installed, raise an error."
+ ^TraitImpl
+ ifNil:[self error: 'Traits are not installed']
+ ifNotNil:[TraitImpl newTraitNamed: aSymbol uses: aTraitCompositionOrCollection category: aString in: anEnvironment]!

Item was added:
+ ----- Method: ClassTrait>>environment (in category 'accessing') -----
+ environment
+ ^ baseTrait environment!

Item was added:
+ ----- Method: Trait class>>newTraitNamed:uses:category:in: (in category 'public') -----
+ newTraitNamed: aSymbol uses: aTraitCompositionOrCollection category: aString in: anEnvironment
+ "Creates a new trait."
+ ^self
+ named: aSymbol
+ uses: aTraitCompositionOrCollection
+ category: aString
+ env: anEnvironment!