The Trunk: ShoutCore-mt.60.mcz

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

The Trunk: ShoutCore-mt.60.mcz

commits-2
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]!