[squeak-dev] The Trunk: ShoutCore-mt.60.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Nov 9 10:16:42 UTC 2017


Marcel Taeumel uploaded a new version of ShoutCore to project The Trunk:
http://source.squeak.org/trunk/ShoutCore-mt.60.mcz

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

Name: ShoutCore-mt.60
Author: mt
Time: 9 November 2017, 11:16:33.47048 am
UUID: e0c9bc99-8bc1-cc48-8b12-53d0c52f9142
Ancestors: ShoutCore-mt.59

Improves support for having custom compiler classes for class-side methods. No need to use #respondsTo:. Just provide default implementation of #meta*Class methods in Class. The "super" is important here because the old behavior has been to  use a custom compiler for the instance-side only.

=============== Diff against ShoutCore-mt.59 ===============

Item was added:
+ ----- Method: Class>>metaShoutParserClass (in category '*ShoutCore-Parsing') -----
+ metaShoutParserClass
+ 	"BE CAREFUL!! If you provide your own class to treat class-side (resp. meta) methods, you MUST account for the #meta*Class selector to use the default implementation in that case. That is, the methods behind #meta*Class MUST always get the default Smalltalk treatment."
+ 
+ 	^  super shoutParserClass!

Item was changed:
  ----- Method: Metaclass>>shoutParserClass (in category '*ShoutCore-Parsing') -----
  shoutParserClass
+ 	
+ 	^ self theNonMetaClass metaShoutParserClass!
- 	"BE CAREFUL!! If you provide your own class to treat class-side (resp. meta) methods, you MUST account for the #meta*Class selector to use the default implementation in that case. That is, the methods behind #meta*Class MUST always get the default Smalltalk treatment."
- 
- 	^ (self theNonMetaClass respondsTo: #metaShoutParserClass)
- 		ifTrue: [self theNonMetaClass metaShoutParserClass]
- 		ifFalse: [super shoutParserClass]!



More information about the Squeak-dev mailing list