[etoys-dev] Etoys: System-bf.21.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 18 20:11:38 EDT 2010


Bert Freudenberg uploaded a new version of System to project Etoys:
http://source.squeak.org/etoys/System-bf.21.mcz

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

Name: System-bf.21
Author: bf
Time: 19 June 2010, 2:11:06 am
UUID: b1c00e41-26a5-40a8-993b-eb5e9a4270fa
Ancestors: System-Richo.20

- fix from Squeak Trunk: move compiled preferences to *autogenerated category so that the package does not get dirty

=============== Diff against System-Richo.20 ===============

Item was changed:
  ----- Method: Preferences class>>compileAccessMethodForPreference: (in category 'initialization') -----
  compileAccessMethodForPreference: aPreference
  	"Compile an accessor method for the given preference"
  
+ 	self class 
+ 		compileSilently: (
+ 			'{1} ^self valueOfFlag: {2} ifAbsent: [ {3} ]'
+ 				format: {
+ 					aPreference name asString.
+ 					aPreference name asSymbol printString.
+ 					aPreference defaultValue storeString }) 
+ 		classified: '*autogenerated - standard queries'!
- 	self class compileSilently: (aPreference name, '
- 	^ self valueOfFlag: #', aPreference name, ' ifAbsent: [', aPreference defaultValue storeString, ']') classified: 'standard queries'!

Item was changed:
  ----- Method: Preferences class>>compileHardCodedPref:enable: (in category 'personalization') -----
  compileHardCodedPref: prefName enable: aBoolean
  	"Compile a method that returns a simple true or false (depending on the value of aBoolean) when Preferences is sent prefName as a message"
  
+ 	self class 
+ 		compileSilently: (
+ 			'{1} ^{2}'
+ 				format: {
+ 					prefName asString.
+ 					aBoolean storeString })
+ 		classified: '*autogenerated - hard-coded prefs'.
- 	self class compileSilently: (prefName asString, '
- 	"compiled programatically -- return hard-coded preference value"
- 	^ ', aBoolean storeString) classified: 'hard-coded prefs'.
  	
  "Preferences compileHardCodedPref: #testing enable: false"!



More information about the etoys-dev mailing list